mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 18:56:55 +00:00
modules bc*: use f-strings (#10945)
* modules bc*: use f-strings * no quotes or backticks inside f-strs * add changelog frag * rename chglof frag file * rename chglof frag file * copr: re-applied change maintain original logic
This commit is contained in:
parent
f9b4abf930
commit
0ef2235929
31 changed files with 197 additions and 202 deletions
|
|
@ -103,7 +103,7 @@ def gather_cloud_init_data_facts(module):
|
|||
filter = module.params.get('filter')
|
||||
if filter is None or filter == i:
|
||||
res['cloud_init_data_facts'][i] = dict()
|
||||
json_file = os.path.join(CLOUD_INIT_PATH, i + '.json')
|
||||
json_file = os.path.join(CLOUD_INIT_PATH, f"{i}.json")
|
||||
|
||||
if os.path.exists(json_file):
|
||||
with open(json_file, 'rb') as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue