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

Add new rename_queue method to VM operations #17853

Merged
merged 2 commits into from
Aug 13, 2018

Conversation

hstastna
Copy link

Related RFE: https://bugzilla.redhat.com/show_bug.cgi?id=1559184
UI PR: ManageIQ/manageiq-ui-classic#4351

This PR adds a new rename_queue method needed for the UI to get a proper task_id while renaming a VM (only VMWare).

@hstastna
Copy link
Author

@agrare @h-kataria This is the method we need for the new feature - adding ability to rename VMs :)

@@ -75,6 +75,24 @@ def rename(new_name)
raw_rename(new_name)
end

def rename_queue(userid, new_name)
task_opts = {
:action => "Renanimg VM for user #{userid}",
Copy link
Member

Choose a reason for hiding this comment

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

Typo should be "Renaming..."

Copy link
Member

Choose a reason for hiding this comment

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

Just pushed a commit to fix the typo

@miq-bot
Copy link
Member

miq-bot commented Aug 13, 2018

Checked commits hstastna/manageiq@9bc9d3c~...29c1af1 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@agrare agrare merged commit 29c1af1 into ManageIQ:master Aug 13, 2018
agrare added a commit that referenced this pull request Aug 13, 2018
Add new rename_queue method to VM operations
@agrare agrare added this to the Sprint 92 Ending Aug 13, 2018 milestone Aug 13, 2018
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.

4 participants