1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

B #4982: return error in case info fails (#100)

This commit is contained in:
Alejandro Huertas Herrero 2020-07-17 12:12:47 +02:00 committed by GitHub
parent 0c7b053162
commit 4afb89c18c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1250,7 +1250,12 @@ CommandParser::CmdParser.new(ARGV) do
helper.perform_action(args[0], options,
'Updating VM configuration') do |vm|
if template.empty?
vm.info
rc = vm.info
if OpenNebula.is_error?(rc)
STDERR.puts "ERROR: #{rc.message}"
exit(-1)
end
template = vm.template_like_str('TEMPLATE', true,
'OS | FEATURES | INPUT | '\