-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{dls} Upgrade azure-datalake-store to 1.0.0a0 #30770
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
@@ -26,12 +26,8 @@ def cf_dls_filesystem(cli_ctx, account_name): | |||
from azure.datalake.store import core | |||
from azure.cli.core._profile import Profile | |||
|
|||
profile = Profile(cli_ctx=cli_ctx) | |||
subscription_id = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is weird subscription_id
is set to None
and then passed to get_login_credentials()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I removed this
cred, subscription_id, _ = profile.get_login_credentials( | ||
subscription_id=subscription_id, | ||
resource=cli_ctx.cloud.endpoints.active_directory_data_lake_resource_id) | ||
cred, _, _ = Profile(cli_ctx=cli_ctx).get_login_credentials() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please double check if cli_ctx.cloud.endpoints.active_directory_data_lake_resource_id
needs to be set as credential_scopes
when creating AzureDLFileSystem
.
Related command
Description
Upgrade
azure-datalake-store
SDK to1.0.0a0
. As listed in SDK release historyThis will unblock us from dropping
signed_session()
interface in #29631Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a
: Make some customer-facing breaking change[Component Name 2]
az command b
: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.