-
Notifications
You must be signed in to change notification settings - Fork 120
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
Support flavors for catalog bundles with Orchestration #535
Support flavors for catalog bundles with Orchestration #535
Conversation
Pull Request Test Coverage Report for Build 3116
💛 - Coveralls |
f4fcca0
to
c437b03
Compare
So I noticed that the spec was failing unless That being said, even though it passed, I would assume the spec file is still missing the test for checking my new functionality for catalog bundles, since it was non existent before. After taking a look at the spec file, it was beyond my understanding, so someone else would have to edit that file or teach me how to test my new functionality correctly. Either way is good with me, I'm always up for learning something new. |
@@ -17,10 +17,15 @@ def main | |||
|
|||
private | |||
|
|||
def orchestration_manager_from_bundle(service) | |||
service.try(:service_templates).detect(&:orchestration_manager).try(:orchestration_manager) unless service.try(:service_templates).nil? |
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.
Reduce the complexity a little:
service.service_templates.detect(&:orchestration_manager).try(:orchestration_manager) if service.respond_to?(:service_templates)
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.
Ack, made the change.
c437b03
to
1d6e395
Compare
Hey @rh-dluong sorry, it was just a little bit of a pain
|
Nice job @d-m-u! |
6dfc54f
to
6f5ae96
Compare
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.
thanks @rh-dluong
2a04926
to
7e61c25
Compare
Thanks @d-m-u for modifying the spec! |
7e61c25
to
dc2109d
Compare
dc2109d
to
e8c56cf
Compare
Checked commit davidtluong@e8c56cf with ruby 2.3.3, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Adds functionality so that catalog bundles now have access to flavors.
Thank you @gmcculloug and @NickLaMuro for improving on my original
if
conditional for this.https://bugzilla.redhat.com/show_bug.cgi?id=1708638