File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Common/Storage/Commands.Storage/Common/Cmdlet Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ internal CloudStorageAccount GetStorageAccountWithAzureEnvironment(StorageCreden
338
338
{
339
339
AzureEnvironment azureEnvironment = null ;
340
340
341
- if ( null != DefaultContext )
341
+ if ( null != SMProfile )
342
342
{
343
343
if ( string . IsNullOrEmpty ( azureEnvironmentName ) )
344
344
{
@@ -354,7 +354,7 @@ internal CloudStorageAccount GetStorageAccountWithAzureEnvironment(StorageCreden
354
354
{
355
355
try
356
356
{
357
- var profileClient = new ProfileClient ( new AzureSMProfile ( ) ) ;
357
+ var profileClient = new ProfileClient ( SMProfile ) ;
358
358
azureEnvironment = profileClient . GetEnvironmentOrDefault ( azureEnvironmentName ) ;
359
359
}
360
360
catch ( ArgumentException e )
You can’t perform that action at this time.
0 commit comments