1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

[Lintin] src/cli/onevm

This commit is contained in:
Tino Vazquez 2019-02-04 10:37:01 +01:00
parent 2b2b253f7c
commit 5e4933798d
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -557,8 +557,10 @@ CommandParser::CmdParser.new(ARGV) do
EOT
command :migrate, migrate_desc, [:range, :vmid_list], :hostid,
[:datastoreid, nil], :options => [ENFORCE, OneVMHelper::LIVE,
OneVMHelper::POFF, OneVMHelper::POFFHARD] do
[:datastoreid, nil], :options => [ENFORCE,
OneVMHelper::LIVE,
OneVMHelper::POFF,
OneVMHelper::POFFHARD] do
host_id = args[1]
verbose = "migrating to #{host_id}"
@ -795,7 +797,8 @@ CommandParser::CmdParser.new(ARGV) do
if ip
if !nic_alias && !nic_name
template = "NIC = [ NETWORK_ID = #{network_id}, IP = #{ip} ]"
template = "NIC = [ NETWORK_ID = #{network_id}, \
IP = #{ip} ]"
elsif !nic_alias && nic_name
template = "NIC = [ NETWORK_ID = #{network_id},
IP = #{ip},