Skip to content

Commit

Permalink
Fixes #3598 - request timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Strachota committed Mar 24, 2014
1 parent 79c3d17 commit 01c8904
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/foreman.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
:foreman:
:enable_module: true
:host: 'https://localhost/'
:username: 'admin'
:password: 'changeme'

# Check cache status on each request
#:refresh_cache: false

# API request timeout, set -1 for infinity
#:request_timeout: 120 #seconds
1 change: 1 addition & 0 deletions lib/hammer_cli_foreman/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def self.resource_config
config[:logger] = Logging.logger['API']
config[:api_version] = 2
config[:aggressive_cache_checking] = HammerCLI::Settings.get(:foreman, :refresh_cache) || true
config[:timeout] = HammerCLI::Settings.get(:foreman, :request_timeout)
config
end

Expand Down

0 comments on commit 01c8904

Please sign in to comment.