fix: user-data-ansible can set a personalise source
This commit is contained in:
parent
191516ab4f
commit
b1368ec66f
1 changed files with 2 additions and 1 deletions
|
|
@ -50,6 +50,7 @@ class RougailUserDataYaml:
|
||||||
self.config = config
|
self.config = config
|
||||||
self.errors = []
|
self.errors = []
|
||||||
self.warnings = []
|
self.warnings = []
|
||||||
|
self.source = _('the YAML file "{0}"')
|
||||||
|
|
||||||
def run(
|
def run(
|
||||||
self,
|
self,
|
||||||
|
|
@ -92,7 +93,7 @@ class RougailUserDataYaml:
|
||||||
allow_secrets_variables = True
|
allow_secrets_variables = True
|
||||||
user_data.append(
|
user_data.append(
|
||||||
{
|
{
|
||||||
"source": _('the YAML file "{0}"').format(filename),
|
"source": self.source.format(filename),
|
||||||
"errors": self.errors,
|
"errors": self.errors,
|
||||||
"warnings": self.warnings,
|
"warnings": self.warnings,
|
||||||
"values": values,
|
"values": values,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue