"no macro" command should not be handled by edit_macro(), fixes #55212 (#55218)

This commit is contained in:
Albert Siersema 2019-04-22 11:24:48 +02:00 committed by Sumit Jaiswal
parent 71494c0bd9
commit 5f8342bc4c

View file

@ -356,7 +356,9 @@ def check_args(module, warnings):
def edit_config_or_macro(connection, commands):
if "macro name" in commands[0]:
# only catch the macro configuration command,
# not negated 'no' variation.
if commands[0].startswith("macro name"):
connection.edit_macro(candidate=commands)
else:
connection.edit_config(candidate=commands)