Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 5e3d915

Browse files
nharper285chkeita
andauthored
[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>
1 parent ebb9b01 commit 5e3d915

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/deployment/deploy.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,9 @@ def assign_scaleset_identity_role(self) -> None:
613613
)
614614

615615
def assign_user_access(self) -> None:
616+
if self.upgrade:
617+
logger.info("Upgrading: Skipping assignment of current user to app role")
618+
return
616619
logger.info("assinging user access to service principal")
617620
app = get_application(
618621
display_name=self.application_name,

0 commit comments

Comments
 (0)