Skip to content

Commit 452c533

Browse files
authored
[Storage] continue fix table contxt issue (#26019)
1 parent 773a148 commit 452c533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Storage/Storage/Common/StorageCloudCmdletBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ internal AzureStorageContext GetCmdletStorageContext(IStorageContext inContext,
279279
{
280280
var context = inContext as AzureStorageContext;
281281

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

0 commit comments

Comments
 (0)