-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create/update Tower project with scm_credential #14618
Conversation
@miq-bot add_labels bug |
@miq-bot add_label fine/yes |
@@ -2,7 +2,14 @@ module ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::Configurati | |||
extend ActiveSupport::Concern | |||
|
|||
module ClassMethods | |||
def provider_params(params) | |||
authentication_id = params.delete('authentication_id') || params.delete(:authentication_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really? We don't know if the params are strings or symbols?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From UI, they will be strings since they will go through http. Keeping the symbol form here is to maintain consistency with the ATTRIBUTES we defined (they are in symbol form).
So if backend is the caller, it can use whole suites of symbols.
So it's a preference thing. If you guys like to get rid of it, I am not against it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The string
form is removed now since API team has merged the patch to always convert keys to symbol
.
This pull request is not mergeable. Please rebase and repush. |
d550c23
to
881a101
Compare
Checked commit jameswnl@f067258 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Create/update Tower project with scm_credential (cherry picked from commit 56c062e)
Fine backport details:
|
If a
configuration_script_source
is to be associated with a credential, thecreate_in_provider
andupdate_in_provider
is being sent a VMDB'sauthentication_id
. We need to convert it tocredential => authentication.manager_ref
(Tower's credential native ID) so that Tower can act on.@miq-bot add_labels providers/ansible_tower