diff --git a/plugins/modules/iosxr_command.py b/plugins/modules/iosxr_command.py index 814ee5d6..f6ff502a 100644 --- a/plugins/modules/iosxr_command.py +++ b/plugins/modules/iosxr_command.py @@ -152,7 +152,9 @@ def parse_commands(module, warnings): command = item["command"] except Exception: command = item - if module.check_mode and not command.startswith("show"): + if module.check_mode and not ( + command.startswith("show") or command.startswith("admin show") + ): warnings.append( "Only show commands are supported when using check mode, not " "executing %s" % command,