[Bug Fix] Adding Check for SP During User Role Assignment. (#1497)

* Adding check for SP during user role assignment.

* Fixing formatting.

* Fixing condition.

* Update src/deployment/deploy.py

Co-authored-by: Cheick Keita <kcheick@gmail.com>

* Formatting.

Co-authored-by: Cheick Keita <kcheick@gmail.com>
This commit is contained in:
Noah McGregor Harper
2021-11-30 20:19:29 -08:00
committed by GitHub
parent ebb9b01895
commit 5e3d915dc7

View File

@ -613,6 +613,9 @@ class Client:
)
def assign_user_access(self) -> None:
if self.upgrade:
logger.info("Upgrading: Skipping assignment of current user to app role")
return
logger.info("assinging user access to service principal")
app = get_application(
display_name=self.application_name,