mirror of https://github.com/apache/jclouds.git
JCLOUDS-426. Update Elasticstack vnc password key
This commit is contained in:
parent
1ebfc7d43a
commit
ffb4df41eb
|
@ -81,7 +81,7 @@ public class MapToServerInfo implements Function<Map<String, String>, ServerInfo
|
|||
builder.bootDeviceIds(Splitter.on(' ').split(from.get("boot")));
|
||||
|
||||
|
||||
builder.vnc(new VNC(from.get("vnc:ip") == null ? "auto" : from.get("vnc:ip"), from.get("vnc:password"), from.containsKey("vnc:tls")
|
||||
builder.vnc(new VNC(from.get("vnc:ip") == null ? "auto" : from.get("vnc:ip"), from.get("password"), from.containsKey("vnc:tls")
|
||||
&& Boolean.valueOf(from.get("vnc:tls"))));
|
||||
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ public class ServerToMap implements Function<Server, Map<String, String>> {
|
|||
}
|
||||
|
||||
if (from.getVnc().getPassword() != null)
|
||||
builder.put("vnc:password", from.getVnc().getPassword());
|
||||
builder.put("password", from.getVnc().getPassword());
|
||||
if (from.getVnc().isTls())
|
||||
builder.put("vnc:tls", "on");
|
||||
if (from.getTags().size() != 0)
|
||||
|
|
|
@ -58,7 +58,7 @@ public class ServerToMapTest {
|
|||
"08c92dd5-70a0-4f51-83d2-835919d254df"))
|
||||
.putAll(
|
||||
ImmutableMap.of("ide:0:0:media", "disk", "nic:0:model", "e1000", "vnc:ip", "auto",
|
||||
"vnc:password", "XXXXXXXX")).build());
|
||||
"password", "XXXXXXXX")).build());
|
||||
}
|
||||
|
||||
public void testWeDontSetMac() {
|
||||
|
@ -82,7 +82,7 @@ public class ServerToMapTest {
|
|||
"08c92dd5-70a0-4f51-83d2-835919d254df"))
|
||||
.putAll(
|
||||
ImmutableMap.of("ide:0:0:media", "disk", "nic:0:model", "e1000", "vnc:ip", "auto",
|
||||
"vnc:password", "XXXXXXXX")).build());
|
||||
"password", "XXXXXXXX")).build());
|
||||
}
|
||||
|
||||
public void testBasicsV2() {
|
||||
|
@ -105,7 +105,7 @@ public class ServerToMapTest {
|
|||
"08c92dd5-70a0-4f51-83d2-835919d254df"))
|
||||
.putAll(
|
||||
ImmutableMap.of("ide:0:0:media", "disk", "nic:0:model", "e1000", "vnc", "auto",
|
||||
"vnc:password", "XXXXXXXX")).build());
|
||||
"password", "XXXXXXXX")).build());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ ide:0:0 08c92dd5-70a0-4f51-83d2-835919d254df
|
|||
ide:0:0:media disk
|
||||
nic:0:model e1000
|
||||
vnc:ip auto
|
||||
vnc:password XXXXXXXX
|
||||
password XXXXXXXX
|
|
@ -1,6 +1,6 @@
|
|||
ide:0:0:write:requests 0
|
||||
boot ide:0:0
|
||||
vnc:password XXXXXXXX
|
||||
password XXXXXXXX
|
||||
ide:0:0 403c9a86-0aab-4e47-aa95-e9768021c4c1
|
||||
ide:0:0:read:requests 0
|
||||
ide:0:0:read:bytes 0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
ide:0:0:write:requests 0
|
||||
boot ide:0:0
|
||||
vnc:password XXXXXXXX
|
||||
password XXXXXXXX
|
||||
ide:0:0 403c9a86-0aab-4e47-aa95-e9768021c4c1
|
||||
ide:0:0:read:requests 0
|
||||
ide:0:0:read:bytes 0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
ide:0:0:write:requests 3698
|
||||
boot ide:0:0
|
||||
vnc:password HfHzVmLT
|
||||
password HfHzVmLT
|
||||
ide:0:0 4af85ed3-0caa-4736-8a26-a33d7de0a122
|
||||
ide:0:0:read:requests 11154
|
||||
ide:0:0:read:bytes 45686784
|
||||
|
@ -28,7 +28,7 @@ status stopped
|
|||
name Demo
|
||||
mem 1024
|
||||
boot ide:0:0
|
||||
vnc:password HWbjvrg2
|
||||
password HWbjvrg2
|
||||
persistent true
|
||||
server 0f962616-2071-4173-be79-7dd084271edf
|
||||
smp auto
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
ide:0:0:write:requests 3698
|
||||
boot ide:0:0
|
||||
vnc:password HfHzVmLT
|
||||
password HfHzVmLT
|
||||
ide:0:0 4af85ed3-0caa-4736-8a26-a33d7de0a122
|
||||
ide:0:0:read:requests 11154
|
||||
ide:0:0:read:bytes 45686784
|
||||
|
@ -27,7 +27,7 @@ status stopped
|
|||
name Demo
|
||||
mem 1024
|
||||
boot ide:0:0
|
||||
vnc:password HWbjvrg2
|
||||
password HWbjvrg2
|
||||
persistent true
|
||||
server 0f962616-2071-4173-be79-7dd084271edf
|
||||
smp auto
|
||||
|
|
Loading…
Reference in New Issue