Skip to content

Commit

Permalink
Merge pull request #52 from AsrOneSdk/sriramvu-dev
Browse files Browse the repository at this point in the history
bug1645997 & Get-AzureSiteRecoveryVault byName
  • Loading branch information
sanjkuma committed Feb 25, 2015
2 parents 63abe6b + a4e3683 commit 15e97f5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public IEnumerable<CloudService> GetCloudServices()
public CloudService GetCloudServiceForVault(ASRVault vault)
{
IEnumerable<CloudService> cloudServiceList = this.GetCloudServices();
CloudService cloudServiceToReturn = null;

foreach (var cloudService in cloudServiceList)
{
Expand All @@ -56,19 +55,17 @@ public CloudService GetCloudServiceForVault(ASRVault vault)
if (resource.Name.Equals(vault.Name, StringComparison.InvariantCultureIgnoreCase))
{
selectedVault = resource;
break;
return cloudService;
}
}
}

if (selectedVault != null)
{
cloudServiceToReturn = cloudService;
break;
}
}

return cloudServiceToReturn;
throw new ArgumentException(
string.Format(
Properties.Resources.InCorrectVaultInformation,
vault.Name,
vault.Location));
}

/// <summary>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ ClientRequestId: {3}</value>
<data name="VaultNotFound" xml:space="preserve">
<value>Vault {0} is not associated with the given subscription.</value>
</data>
<data name="InCorrectVaultInformation" xml:space="preserve">
<value>Vault information (Name: {0}, Location: {1}) is not correct</value>
</data>
<data name="NewProtectionProfileObjectWhatIfMessage" xml:space="preserve">
<value>Creates a new in-memory protection profile association object.</value>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private void GetByName()
this.Name));
}

this.WriteVaults(vaultList);
this.WriteVaults(vaultListByName);
}

/// <summary>
Expand Down

0 comments on commit 15e97f5

Please sign in to comment.