mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
1 parent
bf361e7c63
commit
d40810396d
1 file changed
+4
-4
@@ -87,8 +87,8 @@ end
|
||||
|
||||
# Retrieve hostname
|
||||
host = OpenNebula::Host.new_with_id(host_id, client)
|
||||
exit -1 if OpenNebula.is_error?(host)
|
||||
host.info
|
||||
rc = host.info
|
||||
exit -1 if OpenNebula.is_error?(rc)
|
||||
host_name = host.name
|
||||
|
||||
if repeat
|
||||
@@ -106,9 +106,9 @@ end
|
||||
|
||||
# Loop through all vms
|
||||
vms = VirtualMachinePool.new(client)
|
||||
exit -1 if OpenNebula.is_error?(vms)
|
||||
rc = vms.info_all
|
||||
exit -1 if OpenNebula.is_error?(rc)
|
||||
|
||||
vms.info_all
|
||||
|
||||
state = "STATE=3"
|
||||
state += " or STATE=5" if force == "y"
|
||||
|
||||
Reference in new issue
Block a user