Skip to content

Commit

Permalink
update the service dialog to use the correct automate entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
bzwei committed Feb 16, 2017
1 parent 5f79ec5 commit b552535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/models/dialog/ansible_playbook_service_dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ def add_credential_dropdown(group, position)
:dynamic => true,
:display => "edit",
:required => false,
:label => "Credential",
:label => "Machine Credential",
:description => "The credential to run the playbook",
:reconfigurable => true,
:position => position,
:dialog_group => group
).tap do |dialog_field|
dialog_field.resource_action.fqname = "AutomationManagement/AnsibleTower/Operations/Methods/AvailableCredentials"
dialog_field.resource_action.fqname = "AutomationManagement/AnsibleTower/Operations/Methods/Available_Machine_Credentials"
end
end

def add_inventory_field(group, position, hosts)
group.dialog_fields.build(
:type => "DialogFieldTextBox",
:name => "hosts",
:description => "A ';'-separated string to list hosts for the playbook to run at",
:description => "A ','-separated string to list hosts for the playbook to run at",
:data_type => "string",
:display => "edit",
:required => false,
Expand Down
2 changes: 1 addition & 1 deletion spec/models/dialog/ansible_playbook_service_dialog_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def assert_option_group(group)
expect(group).to have_attributes(:label => "Options", :display => "edit")
fields = group.dialog_fields
expect(fields.size).to eq(2)
assert_field(fields[0], DialogFieldDropDownList, :label => "Credential", :name => "credential", :dynamic => true, :required => false)
assert_field(fields[0], DialogFieldDropDownList, :label => "Machine Credential", :name => "credential", :dynamic => true, :required => false)
assert_field(fields[1], DialogFieldTextBox, :label => "Hosts", :name => "hosts", :required => false, :data_type => 'string')
end

Expand Down

0 comments on commit b552535

Please sign in to comment.