lib/cloudstack-cli/base.rb in cloudstack-cli-0.2.1 vs lib/cloudstack-cli/base.rb in cloudstack-cli-0.2.2

- old
+ new

@@ -16,15 +16,16 @@ def self.exit_on_failure? true end no_commands do - def client + def client(opts = {}) @config ||= CloudstackClient::ConnectionHelper.load_configuration(options[:config]) @client ||= CloudstackClient::Connection.new( @config[:url], @config[:api_key], - @config[:secret_key] + @config[:secret_key], + opts ) end def find_project(project_name = options[:project]) return nil unless project_name \ No newline at end of file