Skip to content

Commit

Permalink
change in the profile message retrieval.
Browse files Browse the repository at this point in the history
  • Loading branch information
dipeshah committed Apr 22, 2023
1 parent ef26a48 commit 5a30c03
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions prisma_sase/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ def login(self, email=None, password=None, saml_auto_browser=True,
return False

else:
print("Profile retrieval failed.")
print("Warning: Prisma SD-WAN profile retrieval failure. Please check if the service account "
"has the right privileges or Prisma SD-WAN is activated.")
# Profile detail retrieval failed
self._parent_class.email = None
self._parent_class._password = None
Expand Down Expand Up @@ -404,7 +405,8 @@ def login_secret(self, client_id=None, client_secret=None, tsg_id=None, grant_ty
return False

else:
print("Profile retrieval failed.")
print("Warning: Prisma SD-WAN profile retrieval failure. Please check if the service account "
"has the right privileges or Prisma SD-WAN is activated.")
# Profile detail retrieval failed
self._parent_class.client_id = None
self._parent_class.client_secret = None
Expand Down Expand Up @@ -774,7 +776,7 @@ def update_profile_vars(self):
return True

else:
print("Profile retrieval failed.")
api_logger.info('Profile retrieval failed.')
# clear password out of memory
self._parent_class._password = None
return False
Expand Down

0 comments on commit 5a30c03

Please sign in to comment.