Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions ibmsecurity/isam/base/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
requires_version = "9.0.3.0"


def execute(isamAppliance, command, input=None, check_mode=False, force=False):
def execute(isamAppliance, command, input=None, check_mode=False, force=False, cli_warning=True):
"""
Run CLI Command
"""
Expand All @@ -18,8 +18,10 @@ def execute(isamAppliance, command, input=None, check_mode=False, force=False):
if input is not None:
post_data['input'] = input

warnings = ["Idempotency checks are not coded for CLI calls.",
"All CLI calls will be marked as changed whether a change happens or not."]
warnings = []
if cli_warning:
warnings = ["Idempotency checks are not coded for CLI calls.",
"All CLI calls will be marked as changed whether a change happens or not."]
if check_mode is True:
return isamAppliance.create_return_object(changed=True, warnings=warnings)
else:
Expand Down