Skip to content

Commit 4c0f92a

Browse files
committed
Fixing default context setting when importing a context
1 parent 93cf18d commit 4c0f92a

File tree

1 file changed

+1
-0
lines changed
  • src/ResourceManager/Common/Commands.Common.Authentication.ResourceManager

1 file changed

+1
-0
lines changed

src/ResourceManager/Common/Commands.Common.Authentication.ResourceManager/AzureRmProfile.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ public bool TryCopyProfile(AzureRmProfile other)
562562
TrySetContext(context.Key, context.Value);
563563
}
564564

565+
this.TrySetDefaultContext(other.DefaultContext);
565566
this.CopyPropertiesFrom(other);
566567
return true;
567568
}

0 commit comments

Comments
 (0)