mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
parent
71494c0bd9
commit
5f8342bc4c
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue