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
Fix flow extraction failure #98
Conversation
@r0h4n @shtripat @nthomas-redhat Please review |
try: | ||
namespace = flow_name.split(".flows.")[0] | ||
flow = definitions[namespace]['flows'][flow_name.split(".")[-1]] | ||
except KeyError: |
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.
Add some comments to explain the logic a bit.
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.
Yes, this needs an example as a commentm rest LGTM
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.
Done
try: | ||
namespace = flow_name.split(".flows.")[0] | ||
flow = definitions[namespace]['flows'][flow_name.split(".")[-1]] | ||
except KeyError: |
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.
Yes, this needs an example as a commentm rest LGTM
tendrl-spec: segragate_object_specific_flows tendrl-bug-id: Tendrl#94 Signed-off-by: root <root@dhcp42-195.lab.eng.blr.redhat.com>
841eee6
to
10ea9e8
Compare
tendrl-spec: segragate_object_specific_flows
tendrl-bug-id: #94
Signed-off-by: root root@dhcp42-195.lab.eng.blr.redhat.com