lib/cloudstack-cli/commands/stack.rb in cloudstack-cli-1.0.0.rc2 vs lib/cloudstack-cli/commands/stack.rb in cloudstack-cli-1.0.0.rc3

- old
+ new

@@ -102,13 +102,14 @@ end no_commands do def find_project_by_name(name) if name - unless project_id = client.list_projects(name: name).first['id'] + unless project = client.list_projects(name: name, listall: true).first say "Error: Project '#{name}' not found.", :red exit 1 end + project_id = project['id'] else project_id = nil end project_id end