lib/cloudstack-cli/base.rb in cloudstack-cli-0.1.4 vs lib/cloudstack-cli/base.rb in cloudstack-cli-0.1.5
- old
+ new
@@ -18,9 +18,10 @@
@config[:secret_key]
)
end
def find_project(project_name = options[:project])
+ return nil unless project_name
unless project = client.get_project(project_name)
say "Project '#{options[:project]}' not found", :red
exit 1
end
project
\ No newline at end of file