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

Fixes #16756 - provide option to publish empty puppet env #6364

Merged
merged 1 commit into from Oct 3, 2016

Conversation

jlsherrill
Copy link
Member

No description provided.

Copy link
Contributor

@daviddavis daviddavis left a comment

Choose a reason for hiding this comment

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

Code looks good (one small comment). Will test it out Monday unless someone beats me to it.

@@ -114,6 +114,10 @@ def copy(new_name)
new_view
end

def publish_puppet_environment?
force_puppet_environment? || puppet_modules.any? || components.any? { |component| component.puppet_modules.any? }
Copy link
Contributor

Choose a reason for hiding this comment

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

What about checking component_modules_to_publish.present? here instead of components.any? { |component| component.puppet_modules.any? }?

Copy link
Member Author

Choose a reason for hiding this comment

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

good call updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants