We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So something like miq.vms.where(:power_state => "off").stop would internally call miq.vms.stop(miq.vms.where(:power_state => "off").pluck(:id))
miq.vms.where(:power_state => "off").stop
miq.vms.stop(miq.vms.where(:power_state => "off").pluck(:id))
This way you can do bulk operations, but not have to that dance manually.
The text was updated successfully, but these errors were encountered:
Nice Request !! Wouldn't be hard to do.
miq.vms.stop([id1, id2, id3])
would internally be handled equivalently to
miq.vms.stop([{ "id" : id1 }, { "id" : id2 }, { "id" : id3 }])
this would work great for any actions not requiring parameters.
Thanks
Sorry, something went wrong.
No branches or pull requests
So something like
miq.vms.where(:power_state => "off").stop
would internally callmiq.vms.stop(miq.vms.where(:power_state => "off").pluck(:id))
This way you can do bulk operations, but not have to that dance manually.
The text was updated successfully, but these errors were encountered: