F #4302: Fix bad type in unless check (#4788)

Co-authored-by: mouyaq <amoya@opennebula.io>
This commit is contained in:
Angel Luis Moya Gonzalezandmouyaq authored and GitHub committed 2020-05-21 17:28:44 +02:00
1 parent 425e662edb
commit 783ec5c1bd
1 file changed
+1 -1
+1 -1
View File
@@ -64,7 +64,7 @@ VNET_XPATH = '//EXTRA/VNET'
# Changes due to new hooks
arguments_raw = Base64.decode64(STDIN.read)
arguments_xml = Nokogiri::XML(arguments_raw)
success = arguments_xml.xpath(SUCCESS_XPATH).text
success = arguments_xml.xpath(SUCCESS_XPATH).text != 'false'
unless success
err_msg = arguments_xml.xpath(ERROR_XPATH).text