Skip to content

Commit e9778c5

Browse files
author
Alfredo Santamaria Gomez
committed
Update durability level in service fabric config before updating vmss in case of failure
1 parent 1ace3f4 commit e9778c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ResourceManager/ServiceFabric/Commands.ServiceFabric/Commands/UpdateAzureRmServiceFabricDurability.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,10 @@ public override void ExecuteCmdlet()
125125
NodeTypes = cluster.NodeTypes
126126
};
127127

128-
var patchTask = PatchAsync(patchArg);
128+
var psCluster = SendPatchRequest(patchArg);
129129

130-
WriteClusterAndVmssVerboseWhenUpdate(new List<Task>() { vmssTask, patchTask }, true, this.NodeType);
130+
WriteClusterAndVmssVerboseWhenUpdate(new List<Task>() { vmssTask }, false, this.NodeType);
131131

132-
var psCluster = new PSCluster(patchTask.Result);
133132
WriteObject(psCluster, true);
134133
}
135134
}

0 commit comments

Comments
 (0)