-
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
Edit Authentications API #14319
Edit Authentications API #14319
Conversation
@miq-bot remove_label wip |
def edit_resource(type, id, data) | ||
auth = resource_search(id, type, collection_class(:authentications)) | ||
task_id = auth.update_in_provider_queue(data) | ||
action_result(true, "Updating Authentication with id #{id}", :task_id => task_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.
hmm, I don't think we've ever had edits return action results. I'll need to test the api client gem.
task_id = auth.update_in_provider_queue(data) | ||
action_result(true, "Updating Authentication with id #{id}", :task_id => task_id) | ||
rescue => err | ||
raise "Could not update Authentication - #{err}" |
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.
same idea for bulks, if edits for authentications return action result, so are the failures. Thanks.
This pull request is not mergeable. Please rebase and repush. |
Checked commits jntullo/manageiq@aed46b5~...7197086 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Thanks @jntullo for the enhancement !! 😍 |
Edit authentications using
update_in_provider_queue(params)
Dependent on #14305
@miq-bot add_label enhancement, api, wip
@miq-bot assign @abellotti