Skip to content

Commit 19fd2f0

Browse files
author
Hovsep
committed
Merge pull request Azure#1 from ogail/profile
Resources Cleanup
2 parents 822cb3d + 37f1488 commit 19fd2f0

File tree

8 files changed

+28
-580
lines changed

8 files changed

+28
-580
lines changed

src/Common/Commands.Common.Test/Common/Data.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static class Data
6666

6767
static Data()
6868
{
69-
AzureAppDir = Path.Combine(Directory.GetCurrentDirectory(), Resources.AzureDirectoryName);
69+
AzureAppDir = AzureSession.ProfileDirectory;
7070
AzureSdkAppDir = Path.Combine(Directory.GetCurrentDirectory(), "Microsoft Azure PowerShell");
7171
TestResultDirectory = FileUtilities.GetAssemblyDirectory();
7272

src/Common/Commands.Common/CloudBaseCmdlet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ protected void DoInitChannelCurrentSubscription(bool force)
8383
{
8484
if (CurrentContext.Subscription == null)
8585
{
86-
throw new ArgumentException(Resources.InvalidCurrentSubscription);
86+
throw new ArgumentException(Resources.InvalidDefaultSubscription);
8787
}
8888

8989
if (CurrentContext.Account == null)
9090
{
91-
throw new ArgumentException(Resources.InvalidCurrentSuscriptionCertificate);
91+
throw new ArgumentException(Resources.AccountNeedsToBeSpecified);
9292
}
9393

9494
if (Channel == null || force)

0 commit comments

Comments
 (0)