Skip to content
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

set_miq_server Action #15262

Merged
merged 1 commit into from
May 31, 2017
Merged

set_miq_server Action #15262

merged 1 commit into from
May 31, 2017

Conversation

jntullo
Copy link

@jntullo jntullo commented May 31, 2017

This adds a set_miq_server action to the API on both a VM resource and the VM collection for bulk setting of miq_servers.

This is needed for PV ticket https://www.pivotaltracker.com/n/projects/1613907/stories/146327113

@miq-bot add_label enhancement, api, fine/no
@miq-bot assign @abellotti

cc: @h-kataria

@jntullo jntullo changed the title Set MIQ Server Action set_miq_server Action May 31, 2017
vm.miq_server = miq_server
action_result(true, "Set miq_server id:#{miq_server.id} for #{vm_ident(vm)}")
rescue => err
action_result(false, "Cannot set miq_server - #{err}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor, "Failed to set miq_server - #{err}" to be consistent with others.

@miq-bot
Copy link
Member

miq-bot commented May 31, 2017

Checked commit jntullo@4dd9b01 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

@abellotti
Copy link
Member

Thanks @jntullo for the enhancement, this LGTM!! 😍

@abellotti abellotti merged commit 218762c into ManageIQ:master May 31, 2017
@abellotti abellotti added this to the Sprint 62 Ending Jun 5, 2017 milestone May 31, 2017
@jntullo jntullo mentioned this pull request Jun 2, 2017
@jntullo jntullo deleted the enhancement/set_miq_server branch November 28, 2017 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants