-
Notifications
You must be signed in to change notification settings - Fork 897
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 service object to deliver to automate. #13956
Add service object to deliver to automate. #13956
Conversation
The generic service state machine uses the service object. We're currently getting the service object from the task which causes a problem in retirement because we don't have a task.
126731c
to
8cd6d8f
Compare
@mkanoor Please review. |
Checked commit tinaafitz@8cd6d8f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
👍 |
@gmcculloug Please Review |
@@ -86,7 +88,7 @@ def service_resource_id(index, scaling_max) | |||
:class_name => 'ServiceProvision_Template', | |||
:instance_name => 'clone_to_service', | |||
:automate_message => 'create', | |||
:attrs => {'request' => 'clone_to_service'}, | |||
:attrs => {'request' => 'clone_to_service', 'Service::Service' => @service.id}, |
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.
@mkanoor I thought the variable name was lower cased. I would expect this to be 'Service::service' => @service.id
.
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.
@gmcculloug Discussed this with @mkanoor. No need to down case the variable name since attributes are down cased in the engine:
https://github.com/tinaafitz/manageiq/blob/master/lib/miq_automation_engine/engine/miq_ae_object.rb#L277
The generic service state machine uses the service object.
We're currently getting the service object from the task which causes a
problem in retirement because we don't have a task.