Skip to content

Commit

Permalink
Small fix for AE5
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 28, 2021
1 parent 411c49b commit 463f6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lumen/sources/ae5.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _get_deployments(self):
deployments = self._session.deployment_list(
k8s=True, format='dataframe', collaborators=bool(user)
).apply(self._process_deployment, axis=1)
if self.admin_username:
if self.admin_username and user is not None:
self._admin_session.authorize()
user_id = self._admin_session.user_info(user)['id']
roles = self._admin_session._get(f'users/{user_id}/role-mappings/realm/composite')
Expand Down

0 comments on commit 463f6b1

Please sign in to comment.