From 159bfee1560c6b15cd17ecbcff5b198729da7446 Mon Sep 17 00:00:00 2001 From: Vincent Feng Date: Thu, 7 Jun 2018 22:21:40 -0700 Subject: [PATCH] Fixed issue: AttributeError %adl list accounts --- adlmagics/adlmagics/services/adla_service_sdk_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adlmagics/adlmagics/services/adla_service_sdk_impl.py b/adlmagics/adlmagics/services/adla_service_sdk_impl.py index 82d3d00..0adfd4e 100644 --- a/adlmagics/adlmagics/services/adla_service_sdk_impl.py +++ b/adlmagics/adlmagics/services/adla_service_sdk_impl.py @@ -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"))