Skip to content

Commit

Permalink
Use Settings directly for getting the memcached server address
Browse files Browse the repository at this point in the history
MiqMemcached.server_address was introduced in ManageIQ#15326 which is not
in fine
  • Loading branch information
carbonin authored and d-m-u committed Jun 6, 2018
1 parent 2b238f9 commit 1eec1bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/embedded_ansible.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def self.api_connection

def self.run_setup_script(exclude_tags)
json_extra_vars = {
:awx_install_memcached_bind => MiqMemcached.server_address,
:awx_install_memcached_bind => ::Settings.session.memcache_server,
:minimum_var_space => 0,
:http_port => HTTP_PORT,
:https_port => HTTPS_PORT,
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/embedded_ansible_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
let(:miq_database) { MiqDatabase.first }
let(:extra_vars) do
{
:awx_install_memcached_bind => MiqMemcached.server_address,
:awx_install_memcached_bind => ::Settings.session.memcache_server,
:minimum_var_space => 0,
:http_port => described_class::HTTP_PORT,
:https_port => described_class::HTTPS_PORT,
Expand Down

0 comments on commit 1eec1bc

Please sign in to comment.