Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Fix infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwynne committed Nov 10, 2010
1 parent a07338e commit 84d5e17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/relish/commands/base.rb
Expand Up @@ -47,7 +47,9 @@ def get_api_token
end

def resource(options = {})
RestClient::Resource.new(url, {:user => api_token, :password => 'X'}.merge(options))
options[:user] ||= api_token
options[:password] ||= 'X'
RestClient::Resource.new(url, options)
end

def clean_args(args)
Expand Down

0 comments on commit 84d5e17

Please sign in to comment.