lib/cloudstack-cli/commands/template.rb in cloudstack-cli-0.0.1 vs lib/cloudstack-cli/commands/template.rb in cloudstack-cli-0.0.2
- old
+ new
@@ -1,10 +1,10 @@
class Template < Thor
desc 'list', 'list templates by type [featured|self|self-executable|executable|community]'
option :project
def list(type='featured')
- cs_cli = CloudstackCli::Helper.new
+ cs_cli = CloudstackCli::Helper.new(options[:config])
if options[:project]
project = cs_cli.projects.select { |p| p['name'] == options[:project] }.first
exit_now! "Project '#{options[:project]}' not found" unless project
end
\ No newline at end of file