Revision 529178b1 tools/cloud
b/tools/cloud | ||
---|---|---|
244 | 244 |
|
245 | 245 |
def execute(self, server_id): |
246 | 246 |
path = '/api/%s/servers/%d/action' % (self.api, int(server_id)) |
247 |
body = json.dumps({'console':{'type':'vnc'}})
|
|
247 |
body = json.dumps({'console': {'type': 'vnc'}})
|
|
248 | 248 |
reply = self.http_cmd('POST', path, body, 200) |
249 |
print_dict(reply['vnc'])
|
|
249 |
print_dict(reply['console'])
|
|
250 | 250 |
|
251 | 251 |
|
252 | 252 |
@command_name('lsaddr') |
Also available in: Unified diff