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

Resource action - Add service_action. #13751

Merged
merged 1 commit into from
Feb 7, 2017

Conversation

tinaafitz
Copy link
Member

@tinaafitz tinaafitz commented Feb 2, 2017

The resource action service_action value is needed by the Generic Service state machine for Ansible Playbook processing.

Related change:
ManageIQ/manageiq-ui-classic#297

@tinaafitz
Copy link
Member Author

@mkanoor Please review.

@miq-bot
Copy link
Member

miq-bot commented Feb 3, 2017

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

Copy link
Contributor

@mkanoor mkanoor left a comment

Choose a reason for hiding this comment

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

👍

build_options = {:action => action[:name], :fqname => fqname}
build_options = {:action => action[:name],
:fqname => fqname,
:ae_attributes => {:service_action => action[:name].downcase}}
Copy link
Contributor

Choose a reason for hiding this comment

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

@tinaafitz Should this be a symbol or a string, Would the engine convert it to a string if its a symbol

https://github.com/ManageIQ/manageiq/blob/master/lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_uri.rb#L11

Converts every symbol to a string when it converts it into a URL

@mkanoor mkanoor merged commit ad522ca into ManageIQ:master Feb 7, 2017
@mkanoor mkanoor added this to the Sprint 54 Ending Feb 13, 2017 milestone Feb 7, 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.

5 participants