Skip to content

Commit fca5e0a

Browse files
committed
Taking pr comments
1 parent 7b92745 commit fca5e0a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public class CreateAzureSiteRecoveryProtectionProfileObject : RecoveryServicesCm
3535
[Parameter(ParameterSetName = ASRParameterSets.Default, Mandatory = true)]
3636
[ValidateNotNullOrEmpty]
3737
[ValidateSet(
38-
"HyperVReplica",
39-
"HyperVReplicaAzure")]
38+
Constants.HyperVReplica,
39+
Constants.HyperVReplicaAzure)]
4040
public string ReplicationProvider { get; set; }
4141

4242
/// <summary>
@@ -46,8 +46,8 @@ public class CreateAzureSiteRecoveryProtectionProfileObject : RecoveryServicesCm
4646
[Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure, Mandatory = true)]
4747
[ValidateNotNullOrEmpty]
4848
[ValidateSet(
49-
"Online",
50-
"Offline")]
49+
Constants.OnlineReplicationMethod,
50+
Constants.OfflineReplicationMethod)]
5151
public string ReplicationMethod { get; set; }
5252

5353
/// <summary>
@@ -132,10 +132,10 @@ public override void ExecuteCmdlet()
132132
{
133133
switch (this.ReplicationProvider)
134134
{
135-
case "HyperVReplica":
135+
case Constants.HyperVReplica:
136136
this.EnterpriseToEnterpriseProtectionProfileObject();
137137
break;
138-
case "HyperVReplicaAzure":
138+
case Constants.HyperVReplicaAzure:
139139
this.EnterpriseToAzureProtectionProfileObject();
140140
break;
141141
}

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/lib/PSObjects.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ public ASRProtectionContainer(ProtectionContainer pc)
306306
{
307307
asrProtectionProfile.HyperVReplicaProviderSettingsObject.AssociationDetail = new List<ASRProtectionProfileAssociationDetails>();
308308
}
309+
309310
foreach (var profileAssosicationDetail in profile.AssociationDetail)
310311
{
311312
var asrProfileDetail = new ASRProtectionProfileAssociationDetails();
@@ -349,7 +350,6 @@ public ASRProtectionContainer(ProtectionContainer pc)
349350
= details.RecoveryPointHistoryDuration;
350351

351352
asrProtectionProfile.HyperVReplicaAzureProviderSettingsObject.CanDissociate = profile.CanDissociate;
352-
353353
}
354354
else if (profile.ReplicationProvider == Constants.HyperVReplica)
355355
{

0 commit comments

Comments
 (0)