Skip to content

Commit 65eb980

Browse files
committed
Fix issue where Default context wasn't being removed after population of contexts
1 parent 27949d5 commit 65eb980

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ResourceManager/Profile/Commands.Profile/Models/RMProfileClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ public AzureRmProfile Login(
282282
}
283283

284284
_profile.TrySetDefaultContext(defaultContext);
285+
_profile.TryRemoveContext("Default");
285286
}
286287

287288
return _profile.ToProfile();

0 commit comments

Comments
 (0)