Skip to content

Commit

Permalink
Turn options into indifferent access
Browse files Browse the repository at this point in the history
  • Loading branch information
bzwei committed Oct 23, 2017
1 parent 6458e00 commit efe4ee8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class ManageIQ::Providers::EmbeddedAnsible::AutomationManager::PlaybookRunner < ::Job
# options are job table columns, including options column which is the playbook context info
def self.create_job(options)
super(name, options)
super(name, options.with_indifferent_access)
end

def start
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
end

context 'other hosts are used' do
let(:options) { {:hosts => 'host1,host2'} }
# Use string key to also test the indifferent accessibility
let(:options) { {'hosts' => 'host1,host2'} }

it 'creates an inventory and moves on to create_job_template' do
expect(ManageIQ::Providers::EmbeddedAnsible::AutomationManager::Inventory).to receive(:raw_create_inventory).and_return(double(:id => 'inv1'))
Expand Down

0 comments on commit efe4ee8

Please sign in to comment.