Skip to content

Commit

Permalink
ad signed-in-user: fix a crash on listing owned objects (Azure#9722)
Browse files Browse the repository at this point in the history
* ad signed-in-user: fix a crash on listing owned objects

* address review feedbacks
  • Loading branch information
yugangw-msft authored and marstr committed Jun 19, 2019
1 parent 7c5f441 commit dc08256
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/azure-cli/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Release History

* Update ADLS version (0.0.45).

**RBAC**

* ad signed-in-user: fix a crash on listing owned objects

2.0.67
++++++
* Introduced a new [Preview] status to tag to more clearly communicate to customers
Expand Down
3 changes: 2 additions & 1 deletion src/azure-cli/azure/cli/command_modules/role/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ def load_command_table(self, _):
g.custom_command('get-member-groups', 'get_user_member_groups')
g.custom_command('create', 'create_user', client_factory=get_graph_client_users, doc_string_source='azure.graphrbac.models#UserCreateParameters')

with self.command_group('ad signed-in-user', signed_in_users_sdk, exception_handler=graph_err_handler) as g:
with self.command_group('ad signed-in-user', signed_in_users_sdk, exception_handler=graph_err_handler,
transform=transform_graph_objects_with_cred) as g:
g.command('show', 'get')
g.custom_command('list-owned-objects', 'list_owned_objects', client_factory=get_graph_client_signed_in_users)

Expand Down

0 comments on commit dc08256

Please sign in to comment.