-
Notifications
You must be signed in to change notification settings - Fork 120
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 orchestration postreconfigure method #57
Refactoring cloud orchestration postreconfigure method #57
Conversation
|
||
service = $evm.root["service_reconfigure_task"].source | ||
stack = service.orchestration_stack | ||
service = @handle.root["service_reconfigure_task"].source |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pkomanek
We have to check if the @handle.root['service_reconfigure_task'] has a valid value.
Can we use a pattern like this
https://github.com/ManageIQ/manageiq-content/blob/master/content/automate/ManageIQ/Service/Generic/StateMachines/GenericLifecycle.class/__methods__/execute.rb#L36
and delegate everything to the service method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use a function to fetch the service object like
https://github.com/ManageIQ/manageiq-content/blob/master/content/automate/ManageIQ/Service/Generic/StateMachines/GenericLifecycle.class/__methods__/execute.rb#L36
Checked commits pkomanek/manageiq-content@43246a1~...1bc9e43 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
…postreconfigure_method Refactoring cloud orchestration postreconfigure method (cherry picked from commit 4ec496e)
Fine backport details:
|
Purpose or Intent
Refactoring ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/methods/postreconfigure.rb method and adding a new spec. This PR is based on the issue bellow.
Links [Optional]
#8