-
Notifications
You must be signed in to change notification settings - Fork 897
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
Override add resource to no-op in service orchestration subclass #18358
Override add resource to no-op in service orchestration subclass #18358
Conversation
@miq-bot add_label enhancement |
b4e0984
to
99edde6
Compare
Should we raise an exception here? |
b5976fa
to
d44d6d1
Compare
b1b4421
to
4daa00f
Compare
🐌 🌹 🔑 🐢 |
f1b6080
to
967b0cd
Compare
967b0cd
to
e7db10b
Compare
Checked commits d-m-u/manageiq@c953e29~...e7db10b with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@@ -77,6 +78,11 @@ def all_vms | |||
orchestration_stack.vms | |||
end | |||
|
|||
def add_resource(rsc, _options = {}) | |||
raise "Service Orchestration subclass does not support add_resource for #{rsc.class.name}" unless rsc.kind_of?(OrchestrationStack) |
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.
@d-m-u This would break the Orchestration Service.
Error: Service Orchestration subclass does not support add_resource for ManageIQ::Providers::Azure::CloudManager::OrchestrationTemplate
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.
@lfu Thanks we were limiting what can be connected to an Orchestration Service object. We can expand this list, but it should be minimal since created resources would get connected through the Stack object.
Would have have a link to where the OrchestrationTemplate gets attached?
The service orchestration shouldn't be doing
add_resource
except for stacks and we should be telling people that they shouldn't try it for things except for stacks.It
fixesattempts to prevent someone from reopening https://bugzilla.redhat.com/show_bug.cgi?id=1664121