Skip to content

Commit d646e35

Browse files
committed
updated roleinstancestatus to reflect updated service management status values
1 parent 6ea34cc commit d646e35

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

Elastacloud.AzureManagement.Fluent/Clients/LinuxVirtualMachineClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private void CheckVmDeploymentIsRunning(List<LinuxVirtualMachineProperties> prop
9595
{
9696
// 1. Get the number of vms in the role and create a binary list
9797
var linuxProperties = new Dictionary<string, RoleInstanceStatus>();
98-
properties.ForEach(property => linuxProperties.Add(property.HostName, RoleInstanceStatus.RoleStateUnknown));
98+
properties.ForEach(property => linuxProperties.Add(property.HostName, RoleInstanceStatus.Unknown));
9999
var vmProperties = new LinuxVirtualMachineProperties() {CloudServiceName = properties[0].CloudServiceName};
100100
// 2. Set the value to if the vm is running or not
101101
int index = 0;

Elastacloud.AzureManagement.Fluent/Types/RoleInstanceStatus.cs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,25 @@ namespace Elastacloud.AzureManagement.Fluent.Types
1010
{
1111
public enum RoleInstanceStatus
1212
{
13-
RoleStateUnknown,
14-
// ReSharper disable InconsistentNaming
13+
Unknown,
1514
CreatingVM,
16-
// ReSharper restore InconsistentNaming
17-
// ReSharper disable InconsistentNaming
1815
StartingVM,
19-
// ReSharper restore InconsistentNaming
2016
CreatingRole,
2117
StartingRole,
2218
ReadyRole,
2319
BusyRole,
2420
StoppingRole,
25-
// ReSharper disable InconsistentNaming
2621
StoppingVM,
27-
// ReSharper restore InconsistentNaming
28-
// ReSharper disable InconsistentNaming
2922
DeletingVM,
30-
// ReSharper restore InconsistentNaming
31-
// ReSharper disable InconsistentNaming
3223
StoppedVM,
33-
// ReSharper restore InconsistentNaming
3424
RestartingRole,
3525
CyclingRole,
3626
FailedStartingRole,
37-
// ReSharper disable InconsistentNaming
3827
FailedStartingVM,
39-
// ReSharper restore InconsistentNaming
40-
UnresponsiveRole,
28+
UnresponsiveRole,
4129
StoppedDeallocated,
4230
Preparing,
43-
Unknown
4431
}
32+
33+
4534
}

0 commit comments

Comments
 (0)