Skip to content

Commit 1c2c742

Browse files
committed
Remove operator only fields from server
1 parent 76350a9 commit 1c2c742

2 files changed

Lines changed: 7 additions & 12 deletions

File tree

src/corelib/Compute/v2_1/Server.cs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,13 @@ public string AdminPassword
110110
[JsonProperty("OS-EXT-AZ:availability_zone")]
111111
public string AvailabilityZone { get; set; }
112112

113-
/// <summary />
114-
[JsonProperty("OS-EXT-SRV-ATTR:host")]
115-
public string HostName { get; set; }
116-
117-
/// <summary />
118-
[JsonProperty("OS-EXT-SRV-ATTR:hypervisor_hostname")]
119-
public string HypervisorHostName { get; set; }
120-
121-
/// <summary />
122-
[JsonProperty("OS-EXT-SRV-ATTR:instance_name")]
123-
public string InstanceName { get; set; }
113+
// TODO: These are operator only. If only we had extension properties... (https://github.com/dotnet/roslyn/issues/112) Need to figure out how to handle stuff like this.
114+
//[JsonProperty("OS-EXT-SRV-ATTR:host")]
115+
//public string HostName { get; set; }
116+
//[JsonProperty("OS-EXT-SRV-ATTR:hypervisor_hostname")]
117+
//public string HypervisorHostName { get; set; }
118+
//[JsonProperty("OS-EXT-SRV-ATTR:instance_name")]
119+
//public string InstanceName { get; set; }
124120

125121
/// <summary>
126122
/// The power state of the server.

src/testing/integration/Compute/v2_1/ServerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public async Task CreateServerTest()
5959
Assert.NotNull(server.Launched);
6060
Assert.NotNull(server.DiskConfig);
6161
Assert.NotNull(server.HostId);
62-
Assert.NotNull(server.HostName);
6362
Assert.NotNull(server.PowerState);
6463
Assert.NotNull(server.VMState);
6564
Assert.NotNull(server.SecurityGroups);

0 commit comments

Comments
 (0)