mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
PEP 8 E111 & E114 cleanup. (#20838)
This commit is contained in:
@@ -466,11 +466,11 @@ class StrategyBase:
|
||||
|
||||
# and if none were found, then we raise an error
|
||||
if not found:
|
||||
msg = "The requested handler '%s' was not found in either the main handlers list nor in the listening handlers list" % handler_name
|
||||
if C.ERROR_ON_MISSING_HANDLER:
|
||||
raise AnsibleError(msg)
|
||||
else:
|
||||
display.warning(msg)
|
||||
msg = "The requested handler '%s' was not found in either the main handlers list nor in the listening handlers list" % handler_name
|
||||
if C.ERROR_ON_MISSING_HANDLER:
|
||||
raise AnsibleError(msg)
|
||||
else:
|
||||
display.warning(msg)
|
||||
|
||||
if 'add_host' in result_item:
|
||||
# this task added a new host (add_host module)
|
||||
|
||||
Reference in New Issue
Block a user