Skip to content

Commit

Permalink
[Storage] continue fix table contxt issue (#26019)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueww authored Sep 5, 2024
1 parent 773a148 commit 452c533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storage/Storage/Common/StorageCloudCmdletBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ internal AzureStorageContext GetCmdletStorageContext(IStorageContext inContext,
{
var context = inContext as AzureStorageContext;

// if TableStorageAccount == null and not using Oauth, need create the TableStorageAccount track1 object for table cmdlets.
if ((context == null && inContext != null) || (context.TableStorageAccount == null && context.StorageAccount != null && context.StorageAccount.Credentials != null && !context.StorageAccount.Credentials.IsToken))
// if TableStorageAccount == null and not using Oauth, need create the TableStorageAccount (from CosmosDB table SDK) object for table cmdlets.
if ((context == null && inContext != null) || (context != null && context.TableStorageAccount == null && (context.StorageAccount != null && context.StorageAccount.Credentials != null && !context.StorageAccount.Credentials.IsToken)))
{
context = new AzureStorageContext(inContext.GetCloudStorageAccount(), null, DefaultContext, WriteDebug);
}
Expand Down

0 comments on commit 452c533

Please sign in to comment.