Skip to content

Commit

Permalink
Fix refresh_cache and request_timeout parameters usage
Browse files Browse the repository at this point in the history
Considering the name of these parameters, they should be affect system-wide configuration but were set in root configuration file.
This commit fixes this unexpected behavior.
  • Loading branch information
neomilium committed Oct 15, 2020
1 parent 63bba21 commit 2593087
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions templates/hammer_etc.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

# Your foreman server address
:host: '<%= @foreman_url_real %>'

# Check API documentation cache status on each request
:refresh_cache: <%= @refresh_cache %>

# API request timeout in seconds, set -1 for infinity
:request_timeout: <%= @request_timeout %>
<% if @ssl_ca_file_real -%>

:ssl:
Expand Down
6 changes: 0 additions & 6 deletions templates/hammer_root.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,3 @@
# Credentials. You'll be asked for the interactively if you leave them blank here
:username: '<%= @username_real %>'
:password: '<%= @password_real %>'

# Check API documentation cache status on each request
:refresh_cache: <%= @refresh_cache %>

# API request timeout in seconds, set -1 for infinity
:request_timeout: <%= @request_timeout %>

0 comments on commit 2593087

Please sign in to comment.