mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
modules [lm]*: use f-strings (#10971)
* modules [lm]*: use f-strings * add changelog frag
This commit is contained in:
@@ -104,7 +104,7 @@ def run_module():
|
||||
if module.params[param]:
|
||||
paths = run_lbu(param, '-l').split('\n')
|
||||
for path in module.params[param]:
|
||||
if os.path.normpath('/' + path)[1:] not in paths:
|
||||
if os.path.normpath(f"/{path}")[1:] not in paths:
|
||||
update = True
|
||||
|
||||
if module.params['commit']:
|
||||
|
||||
Reference in New Issue
Block a user