Skip to content

Commit

Permalink
Merge pull request #9 from chkp-royl/master
Browse files Browse the repository at this point in the history
Add check to 'show-mdss' command
  • Loading branch information
chkp-royl authored Jan 25, 2021
2 parents fb374fe + bc1eee7 commit 7581225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion policyCleanUp/policyCleanUp.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ def is_failure(error_msg, response):
# Check if running on MDS and didn't supply domain
def check_validation_for_mds(client, domain):
api_res = client.api_call("show-mdss")
if int(api_res.data.get('total')) != 0:
if api_res.success and int(api_res.data.get('total')) != 0:
if domain is None:
print_msg(" Error: You must provide a domain in a Multi-Domain-Management environment.")
exit(1)
Expand Down

0 comments on commit 7581225

Please sign in to comment.