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

Refactoring cloud vm retirement amazon_check_pre_retirement method #325

Merged
merged 2 commits into from
Jul 9, 2018
Merged

Refactoring cloud vm retirement amazon_check_pre_retirement method #325

merged 2 commits into from
Jul 9, 2018

Conversation

pkomanek
Copy link
Contributor

Purpose or Intent

Refactoring Cloud/VM/Retirement/StateMachines/Methods.class/methods/amazon_check_pre_retirement.rb method with spec. This PR is based on the issue bellow.

Links

#8

@miq-bot add_label refactoring

@pkomanek pkomanek changed the title [WIP]Refactoring cloud vm retirement amazon_check_pre_retirement method Refactoring cloud vm retirement amazon_check_pre_retirement method Jun 12, 2018
@miq-bot miq-bot removed the wip label Jun 12, 2018
@handle.root['ae_result'] = 'ok'
elsif power_state == "never"
# If never then this VM is a template so exit the retirement state machine
@handle.root['ae_result'] = 'error'
Copy link
Contributor

Choose a reason for hiding this comment

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

@pkomanek Should we raise an error here if someone is trying to power off a template?

@miq-bot
Copy link
Member

miq-bot commented Jul 3, 2018

Checked commits pkomanek/manageiq-content@e2fb22f~...a9ee980 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@mkanoor mkanoor merged commit b1cc396 into ManageIQ:master Jul 9, 2018
@mkanoor mkanoor added this to the Sprint 90 Ending Jul 16, 2018 milestone Jul 9, 2018
@pkomanek pkomanek deleted the refactoring_cloud_vm_retirement_statemachines_methods_AmazonCheckPreRetirement_method branch July 10, 2018 09:03
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