fix: specialize error
This commit is contained in:
parent
4241cd25a7
commit
2bd04cd72d
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ from ansible.module_utils._text import to_bytes
|
||||||
|
|
||||||
from rougail import RougailConfig
|
from rougail import RougailConfig
|
||||||
from rougail.user_data_file import RougailUserDataFile
|
from rougail.user_data_file import RougailUserDataFile
|
||||||
|
from rougail.error import ExtentionError
|
||||||
|
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
|
|
||||||
|
@ -43,7 +44,7 @@ class RougailUserDataAnsible(RougailUserDataFile):
|
||||||
rougailconfig["step.user_data"] = user_data
|
rougailconfig["step.user_data"] = user_data
|
||||||
user_data = rougailconfig["step.user_data"]
|
user_data = rougailconfig["step.user_data"]
|
||||||
if "ansible" not in 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.rougailconfig = rougailconfig
|
||||||
self.filenames = self.rougailconfig["ansible.filename"]
|
self.filenames = self.rougailconfig["ansible.filename"]
|
||||||
self.secret = self.rougailconfig["ansible.secret"]
|
self.secret = self.rougailconfig["ansible.secret"]
|
||||||
|
|
Loading…
Reference in a new issue