Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
eb8208a5
Commit
eb8208a5
authored
Jul 22, 2013
by
Stavros Sachtouris
Browse files
Expose resize_server as server_resize
Refs: 4153
parent
d07fddd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/commands/cyclades.py
View file @
eb8208a5
...
...
@@ -430,6 +430,26 @@ class server_console(_init_cyclades, _optional_json):
self
.
_run
(
server_id
=
server_id
)
@
command
(
server_cmds
)
class
server_resize
(
_init_cyclades
,
_optional_output_cmd
):
"""Set a different flavor for an existing server
To get server ids and flavor ids:
/server list
/flavor list
"""
@
errors
.
generic
.
all
@
errors
.
cyclades
.
connection
@
errors
.
cyclades
.
server_id
@
errors
.
cyclades
.
flavor_id
def
_run
(
self
,
server_id
,
flavor_id
):
self
.
_optional_output
(
self
.
client
.
resize_server
(
server_id
,
flavor_id
))
def
main
(
self
,
server_id
,
flavor_id
):
super
(
self
.
__class__
,
self
).
_run
()
self
.
_run
(
server_id
=
server_id
,
flavor_id
=
flavor_id
)
@
command
(
server_cmds
)
class
server_firewall
(
_init_cyclades
):
"""Manage server (VM) firewall profiles for public networks"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment