-
Notifications
You must be signed in to change notification settings - Fork 898
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
Create catalog item after job templates are created #13893
Conversation
0f1b7ee
to
9b74a39
Compare
service_name = options[:name] | ||
description = options[:description] | ||
config_info = validate_config_info(options) | ||
|
||
enhanced_config = config_info.deep_merge(create_job_templates(service_name, description, config_info, auth_user)) |
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.
@bzwei Should this be marked WIP? I don't see create_job_templates
defined anywhere
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.
Waiting for @syncrou's work be committed. But the spec test does not depend on it.
def self.create_catalog_item(options, _auth_user) | ||
options = options.merge(:service_type => 'atomic', :prov_type => 'generic_ansible_playbook') | ||
def self.create_catalog_item(options, auth_user) | ||
options = options.deep_dup.merge(:service_type => 'atomic', :prov_type => 'generic_ansible_playbook') |
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.
@bzwei - What changed that would require the call to deep_dup
vs. just merge
before?
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.
yes. I don't need deep_dup here. I need to make sure input options
are not modified
This pull request is not mergeable. Please rebase and repush. |
This is to continue the work to create a catalog item after the initial work
9b74a39
to
472e70e
Compare
Checked commit bzwei@472e70e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
👍 Looks good to me |
This is to continue the work to create a catalog item after the initial work
@syncrou @gmcculloug please review