Skip to content

Commit 59be395

Browse files
committed
Resolve review feedback
1 parent 70ae49c commit 59be395

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/ResourceManager/Profile/Commands.Profile.Test/ContextCmdletTests.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ public void GetAzureContextNoLogin()
8888
cmdlt.InvokeBeginProcessing();
8989
cmdlt.ExecuteCmdlet();
9090
cmdlt.InvokeEndProcessing();
91-
}
92-
catch
93-
{
94-
9591
}
9692
finally
9793
{

src/ResourceManager/Profile/Commands.Profile/Context/GetAzureRMContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected override AzureContext DefaultContext
4545

4646
public override void ExecuteCmdlet()
4747
{
48-
var context = (PSAzureContext)AzureRmProfileProvider.Instance.Profile.Context;
48+
var context = (PSAzureContext)DefaultContext;
4949
if (context == null)
5050
{
5151
WriteError(new ErrorRecord(

0 commit comments

Comments
 (0)