-
Notifications
You must be signed in to change notification settings - Fork 7
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
Parse default args configuration #471
Conversation
- The implemented default map can be generated
from ovs.extensions.healthcheck.logger import Logger | ||
from ovs.extensions.generic.configuration import Configuration |
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.
...f G H i...
@@ -536,11 +569,16 @@ def get_command(self, ctx, name): | |||
:return: Function pointer to the command or None when no import could happen | |||
:rtype: callable | |||
""" | |||
cmd = self.commands.get(name) |
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.
cmd = self.commands.get(name)
if cmd: return cmd
returns quite a couple of times.
Have you thought about ofloading it to a seperate function?
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.
Offloading won't really benefit it here
def get_possible_cached_command():
return self.commands.get(name)
cmd = self.get_possible_cached_command()
if cmd:
....
…ation Parse default args configuration (cherry picked from commit dbba883)
No description provided.