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 service object to deliver to automate. #13956

Merged
merged 1 commit into from
Feb 20, 2017

Conversation

tinaafitz
Copy link
Member

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.

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.
@tinaafitz
Copy link
Member Author

@mkanoor Please review.

@miq-bot
Copy link
Member

miq-bot commented Feb 16, 2017

Checked commit tinaafitz@8cd6d8f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 🍪

@mkanoor
Copy link
Contributor

mkanoor commented Feb 17, 2017

👍

@mkanoor
Copy link
Contributor

mkanoor commented Feb 17, 2017

@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},
Copy link
Member

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.

Copy link
Member Author

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

@gmcculloug gmcculloug merged commit 6790fa0 into ManageIQ:master Feb 20, 2017
@gmcculloug gmcculloug added this to the Sprint 55 Ending Feb 27, 2017 milestone Feb 20, 2017
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