File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,8 +177,6 @@ def allocate(client, template):
177177 def __init__ (self , xml , client ):
178178 super (VirtualMachine , self ).__init__ (xml , client )
179179 self .id = self ['ID' ] if self ['ID' ] else None
180- if client .one_version is None :
181- client .version ()
182180
183181 def deploy (self , host_id ):
184182 """
@@ -231,19 +229,13 @@ def shutdown(self):
231229 """
232230 Shutdowns an already deployed VM
233231 """
234- if client .one_version >= '5' :
235- self ._action ('terminate' )
236- else :
237- self ._action ('shutdown' )
232+ self ._action ('shutdown' )
238233
239234 def shutdown_hard (self ):
240235 """
241236 Shutdown hard an already deployed VM
242237 """
243- if client .one_version >= '5' :
244- self ._action ('terminate-hard' )
245- else :
246- self ._action ('shutdown-hard' )
238+ self ._action ('shutdown-hard' )
247239
248240 def poweroff (self ):
249241 """
You can’t perform that action at this time.
0 commit comments