mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
Reformat everything.
This commit is contained in:
4
plugins/cache/yaml.py
vendored
4
plugins/cache/yaml.py
vendored
@@ -58,9 +58,9 @@ class CacheModule(BaseFileCacheModule):
|
||||
"""
|
||||
|
||||
def _load(self, filepath):
|
||||
with open(os.path.abspath(filepath), 'r', encoding='utf-8') as f:
|
||||
with open(os.path.abspath(filepath), "r", encoding="utf-8") as f:
|
||||
return AnsibleLoader(f).get_single_data()
|
||||
|
||||
def _dump(self, value, filepath):
|
||||
with open(os.path.abspath(filepath), 'w', encoding='utf-8') as f:
|
||||
with open(os.path.abspath(filepath), "w", encoding="utf-8") as f:
|
||||
yaml.dump(value, f, Dumper=AnsibleDumper, default_flow_style=False)
|
||||
|
||||
Reference in New Issue
Block a user