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

Use utility function vm_powered_on? instead manual comparison #204

Merged
merged 1 commit into from
Mar 8, 2018

Conversation

miha-plesko
Copy link
Contributor

With this commit we replace manual comparison of status with utility function. The logic is a bit more bullet-proof now since we now only prevent VM delete when VM is "ON" while we originally only allowed delete when VM was "OFF". So effectively we now allow VM delete even if status is e.g. "unknown" which I think should succeed.

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1550841

@miq-bot assign @agrare
@miq-bot add_label enhancement,gaprindashvili/yes

Followup for #184

@miha-plesko miha-plesko changed the title Use utility function supports_terminate? instead manual comparison Use utility function vm_powered_on? instead manual comparison Mar 2, 2018
With this commit we replace manual comparison of status with
utility function. The logic is a bit more bullet-proof now since
we now only prevent VM delete when VM is "ON" while we originally
only allowed delete when VM was "OFF". So effectively we now allow
VM delete even if status is e.g. "unknown" which I think should succeed.

Signed-off-by: Miha Pleško <miha.plesko@xlab.si>
@miq-bot
Copy link
Member

miq-bot commented Mar 2, 2018

Checked commit miha-plesko@ffe13b2 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. ⭐

Copy link
Member

@agrare agrare left a comment

Choose a reason for hiding this comment

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

👍 nice change

@agrare agrare merged commit 15f83b5 into ManageIQ:master Mar 8, 2018
@agrare agrare added this to the Sprint 81 Ending Mar 12, 2018 milestone Mar 8, 2018
simaishi pushed a commit that referenced this pull request Mar 8, 2018
Use utility function vm_powered_on? instead manual comparison
(cherry picked from commit 15f83b5)

https://bugzilla.redhat.com/show_bug.cgi?id=1552683
@simaishi
Copy link
Contributor

simaishi commented Mar 8, 2018

Gaprindashvili backport details:

$ git log -1
commit 1a31805ae0d163460d888dd26685015dcf74ae99
Author: Adam Grare <agrare@redhat.com>
Date:   Thu Mar 8 08:02:31 2018 -0500

    Merge pull request #204 from miha-plesko/vm-delete-followup
    
    Use utility function vm_powered_on? instead manual comparison
    (cherry picked from commit 15f83b53314e63dbf225346fa7a0580dc1cf55c8)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1552683

@miha-plesko miha-plesko deleted the vm-delete-followup branch January 7, 2019 08:25
agrare pushed a commit to agrare/manageiq-providers-vmware that referenced this pull request Apr 15, 2019
…callback

Nuage events callbacks for targeted refresh
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