Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from Azure/Bug_AttributeError_listaccounts
Browse files Browse the repository at this point in the history
Fixed issue: AttributeError %adl list accounts
  • Loading branch information
iVincentFeng committed Jun 8, 2018
2 parents 9c74a71 + 159bfee commit 91e50b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adlmagics/adlmagics/services/adla_service_sdk_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def retrieve_accounts(self, page_index, page_account_number):
sub_client = SubscriptionClient(self.__token_service.credentials)
for sub in sub_client.subscriptions.list():
dla_client = DataLakeAnalyticsAccountManagementClient(self.__token_service.credentials, sub.subscription_id)
accounts.extend([AdlaAccount(account.name) for account in dla_client.account.list()])
accounts.extend([AdlaAccount(account.name) for account in dla_client.accounts.list()])

accounts.sort(key = lambda account: getattr(account, "name"))

Expand Down

0 comments on commit 91e50b1

Please sign in to comment.