-
Notifications
You must be signed in to change notification settings - Fork 92
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
drop unsupported_reason_add and supports_event? #875
Conversation
96d51cd
to
ccbe5eb
Compare
update:
update:
|
aa2d119
to
ee4b53a
Compare
update:
|
ee4b53a
to
137c279
Compare
Checked commits kbrock/manageiq-providers-openstack@b2440ed~...137c279 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint |
supports :events do | ||
if parent_manager | ||
parent_manager.unsupported_reason(:events) | ||
else | ||
_('no parent_manager to ems') | ||
end | ||
end |
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.
This is a change.
before, if there is no parent_manager, then it will be good
after: if there is no parent manager, then it will bad
sound right to you?
(I obviously think so, but wanted to make this change clear)
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.
Yeah, I don't think this manager could possibly work without a parent ems due to the delegated authentication so even allow_nil below probably doesn't make sense so I'm good with this.
unsupported_reason_add
. Returning the string insteadsupports_events?
part of: