lib/cloudstack-cli/commands/resource_limit.rb in cloudstack-cli-0.13.0 vs lib/cloudstack-cli/commands/resource_limit.rb in cloudstack-cli-0.13.1
- old
+ new
@@ -108,9 +108,10 @@
def set_domain_id
domains = client.list_domains(options[:domain])
if domains.size < 1
say "Domain #{options[:domain]} not found.", :red
+ exit -1
else
options[:domain_id] = domains.first['id']
end
end