Commit 3b2f2705 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Remove deprecated "--hard" arg. from server reboot

parent 8240a4c5
...@@ -25,4 +25,5 @@ Features: ...@@ -25,4 +25,5 @@ Features:
- Update account API commands to reflect changes in synnefo 0.16 - Update account API commands to reflect changes in synnefo 0.16
- Implement a get_endpoint_url method and use it - Implement a get_endpoint_url method and use it
- Rename kamaki.clients.Client.base_url --> endpoint_url, keep BW compatibility [#9] - Rename kamaki.clients.Client.base_url --> endpoint_url, keep BW compatibility [#9]
- Remove deprecated --hard argument in "kamaki server reboot"
...@@ -744,8 +744,6 @@ class server_reboot(_CycladesInit, _ServerWait): ...@@ -744,8 +744,6 @@ class server_reboot(_CycladesInit, _ServerWait):
"""Reboot a virtual server""" """Reboot a virtual server"""
arguments = dict( arguments = dict(
hard=FlagArgument(
'perform a hard reboot (deprecated)', ('-f', '--force')),
type=ValueArgument('SOFT or HARD - default: SOFT', ('--type')), type=ValueArgument('SOFT or HARD - default: SOFT', ('--type')),
wait=FlagArgument('Wait server to be destroyed', ('-w', '--wait')) wait=FlagArgument('Wait server to be destroyed', ('-w', '--wait'))
) )
...@@ -754,11 +752,7 @@ class server_reboot(_CycladesInit, _ServerWait): ...@@ -754,11 +752,7 @@ class server_reboot(_CycladesInit, _ServerWait):
@errors.Cyclades.connection @errors.Cyclades.connection
@errors.Cyclades.server_id @errors.Cyclades.server_id
def _run(self, server_id): def _run(self, server_id):
hard_reboot = self['hard'] hard_reboot = None
if hard_reboot:
self.error(
'WARNING: -f/--force will be deprecated in version 0.12\n'
'\tIn the future, please use --type=hard instead')
if self['type']: if self['type']:
if self['type'].lower() in ('soft', ): if self['type'].lower() in ('soft', ):
hard_reboot = False hard_reboot = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment