Skip to content

Commit 7581225

Browse files
authored
Merge pull request #9 from chkp-royl/master
Add check to 'show-mdss' command
2 parents fb374fe + bc1eee7 commit 7581225

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

policyCleanUp/policyCleanUp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ def is_failure(error_msg, response):
992992
# Check if running on MDS and didn't supply domain
993993
def check_validation_for_mds(client, domain):
994994
api_res = client.api_call("show-mdss")
995-
if int(api_res.data.get('total')) != 0:
995+
if api_res.success and int(api_res.data.get('total')) != 0:
996996
if domain is None:
997997
print_msg(" Error: You must provide a domain in a Multi-Domain-Management environment.")
998998
exit(1)

0 commit comments

Comments
 (0)