From 1b57b97b260c58b854e8418a02bf1b32b2ffe69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Czern=C3=BD?= Date: Fri, 11 Sep 2020 14:29:11 +0200 Subject: [PATCH] M #-: Fix oneflow tests (#207) --- src/flow/lib/models/service_template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flow/lib/models/service_template.rb b/src/flow/lib/models/service_template.rb index 69a4ec4f8b..0ff5edb436 100644 --- a/src/flow/lib/models/service_template.rb +++ b/src/flow/lib/models/service_template.rb @@ -422,7 +422,7 @@ module OpenNebula !role['elasticity_policies'].empty?) || (role['scheduled_policies'] && !role['scheduled_policies'].empty?)) && - role['min_vms'].nil? || role['max_vms'].nil? + (role['min_vms'].nil? || role['max_vms'].nil?) raise Validator::ParseException, "Role '#{role['name']}' with " \ " 'elasticity_policies' or " \