fix: black
This commit is contained in:
parent
d9c266cc84
commit
863fa6e979
1 changed files with 4 additions and 2 deletions
|
|
@ -57,7 +57,9 @@ class RougailUserDataYaml:
|
||||||
if filename.is_file():
|
if filename.is_file():
|
||||||
self.filenames.append(filename)
|
self.filenames.append(filename)
|
||||||
else:
|
else:
|
||||||
for name in sorted(chain(filename.glob('*.yml'), filename.glob('*.yaml'))):
|
for name in sorted(
|
||||||
|
chain(filename.glob("*.yml"), filename.glob("*.yaml"))
|
||||||
|
):
|
||||||
self.filenames.append(name)
|
self.filenames.append(name)
|
||||||
|
|
||||||
self.file_with_secrets = self.rougailconfig["yaml.file_with_secrets"]
|
self.file_with_secrets = self.rougailconfig["yaml.file_with_secrets"]
|
||||||
|
|
@ -71,7 +73,7 @@ class RougailUserDataYaml:
|
||||||
def run(
|
def run(
|
||||||
self,
|
self,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.yaml = YAML(typ='safe', pure=True)
|
self.yaml = YAML(typ="safe", pure=True)
|
||||||
user_data = []
|
user_data = []
|
||||||
if self.file_with_secrets == "last":
|
if self.file_with_secrets == "last":
|
||||||
last_filename_idx = len(self.filenames) - 1
|
last_filename_idx = len(self.filenames) - 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue