diff --git a/src/rougail/user_data_ansible/__init__.py b/src/rougail/user_data_ansible/__init__.py index ae545e3..26766b5 100644 --- a/src/rougail/user_data_ansible/__init__.py +++ b/src/rougail/user_data_ansible/__init__.py @@ -22,6 +22,7 @@ from ansible.module_utils._text import to_bytes from rougail import RougailConfig from rougail.user_data_file import RougailUserDataFile +from rougail.error import ExtentionError from .i18n import _ @@ -43,7 +44,7 @@ class RougailUserDataAnsible(RougailUserDataFile): rougailconfig["step.user_data"] = user_data user_data = rougailconfig["step.user_data"] if "ansible" not in user_data: - raise Exception(_("ansible is not set in step.user_data")) + raise ExtentionError(_("ansible is not set in step.user_data")) self.rougailconfig = rougailconfig self.filenames = self.rougailconfig["ansible.filename"] self.secret = self.rougailconfig["ansible.secret"]