1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

B OpenNebula/one#796: show error message (#24)

This commit is contained in:
Alejandro Huertas Herrero 2020-06-18 13:56:27 +02:00 committed by GitHub
parent 3f31b7f5c6
commit a0e382fdca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -773,7 +773,9 @@ class ServiceLCM
if !rc[0]
role.set_state(Role::STATE[error_state])
break OpenNebula::Error.new("Error deploying role #{name}")
break OpenNebula::Error.new(
"Error deploying role #{name}: #{rc[1]}"
)
end
role.set_state(Role::STATE[success_state])
@ -802,7 +804,9 @@ class ServiceLCM
if !rc[0]
role.set_state(Role::STATE[error_state])
break OpenNebula::Error.new("Error undeploying role #{name}")
break OpenNebula::Error.new(
"Error undeploying role #{name}: #{rc[1]}"
)
end
role.set_state(Role::STATE[success_state])