lib/cloudstack-cli/helper.rb in cloudstack-cli-0.7.1 vs lib/cloudstack-cli/helper.rb in cloudstack-cli-0.7.2

- old
+ new

@@ -102,13 +102,14 @@ def create_port_rules(server, port_rules, async = true) frontendip = nil jobs = [] client.verbose = async + project_id = server['project'] ? client.get_project(server['project'])['id'] : nil port_rules.each do |pf_rule| ip = pf_rule.split(":")[0] if ip != '' - ip_addr = client.get_public_ip_address(ip) + ip_addr = client.get_public_ip_address(ip, project_id) unless ip_addr say "Error: IP #{ip} not found.", :red next end else \ No newline at end of file