diff --git a/src/cli/one_helper.rb b/src/cli/one_helper.rb index c61828e527..3bfda3e948 100644 --- a/src/cli/one_helper.rb +++ b/src/cli/one_helper.rb @@ -385,6 +385,13 @@ EOT tmp = Tempfile.new(id.to_s) path = tmp.path + rc = resource.info + + if OpenNebula.is_error?(rc) + puts rc.message + exit -1 + end + tmp << resource.template_str tmp.flush