Skip to content

Commit e7caa84

Browse files
committed
Updating the naming issue of the file
1 parent c1aa042 commit e7caa84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryVaultCredential.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ private string GenerateFileName()
175175
{
176176
string fileName;
177177

178-
if (string.IsNullOrEmpty(this.SiteName))
178+
if (string.IsNullOrEmpty(this.Site.Name))
179179
{
180-
fileName = string.Format("{0}_{1}.VaultCredentials", this.Name, DateTime.UtcNow.ToLongDateString());
180+
fileName = string.Format("{0}_{1}.VaultCredentials", this.Vault.Name, DateTime.UtcNow.ToLongDateString());
181181
}
182182
else
183183
{
184-
fileName = string.Format("{0}_{1}_{2}.VaultCredentials", this.SiteName, this.Name, DateTime.UtcNow.ToLongDateString());
184+
fileName = string.Format("{0}_{1}_{2}.VaultCredentials", this.Site.Name, this.Vault.Name, DateTime.UtcNow.ToLongDateString());
185185
}
186186

187187
return fileName;

0 commit comments

Comments
 (0)