Skip to content

Commit 59936c1

Browse files
committed
fix GetAzureRMRecoveryServicesVaultSettingsFile.cs
1 parent f89640d commit 59936c1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Vault/GetAzureRMRecoveryServicesVaultSettingsFile.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,6 @@ public SwitchParameter Backup
132132
[ValidateNotNullOrEmpty]
133133
public string SiteIdentifier { get; set; }
134134

135-
/// <summary>
136-
/// Gets or sets certificate.
137-
/// </summary>
138-
[Parameter(ParameterSetName = ARSParameterSets.ForSite, Mandatory = true)]
139-
[Parameter(ParameterSetName = ARSParameterSets.ByDefault, Mandatory = true)]
140-
[ValidateNotNullOrEmpty]
141-
public string certificate { get; set; }
142-
143135
/// <summary>
144136
/// Gets or sets SiteFriendlyName.
145137
/// </summary>
@@ -381,7 +373,6 @@ private void GetSiteRecoveryCredentials()
381373
string fileName = this.GenerateFileName();
382374

383375
string filePath = string.IsNullOrEmpty(this.Path) ? Utilities.GetDefaultPath() : this.Path;
384-
filePath = ResolveUserPath(filePath);
385376

386377
// Generate file.
387378
if (RecoveryServicesClient.getVaultAuthType(this.Vault.ResourceGroupName, this.Vault.Name) == 0)
@@ -476,7 +467,6 @@ private string GenerateFileName()
476467
public void GetAzureRMRecoveryServicesVaultBackupCredentials()
477468
{
478469
string targetLocation = string.IsNullOrEmpty(this.Path) ? Utilities.GetDefaultPath() : this.Path;
479-
targetLocation = ResolveUserPath(targetLocation);
480470
if (!Directory.Exists(targetLocation))
481471
{
482472
throw new ArgumentException(Resources.VaultCredPathException);

0 commit comments

Comments
 (0)