Skip to content
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

Merged
merged 2 commits into from Jan 11, 2017
Merged

Conversation

nnDarshan
Copy link
Contributor

tendrl-spec: segragate_object_specific_flows
tendrl-bug-id: #94
Signed-off-by: root root@dhcp42-195.lab.eng.blr.redhat.com

@nnDarshan
Copy link
Contributor Author

@r0h4n @shtripat @nthomas-redhat Please review

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 57.243% when pulling ac747ef on nnDarshan:FixFlowExtractionIssue into 8b8d98b on Tendrl:master.

try:
namespace = flow_name.split(".flows.")[0]
flow = definitions[namespace]['flows'][flow_name.split(".")[-1]]
except KeyError:
Copy link
Member

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.

Copy link
Contributor

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

Copy link
Contributor Author

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:
Copy link
Contributor

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

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 57.243% when pulling 841eee6 on nnDarshan:FixFlowExtractionIssue into ea34779 on Tendrl:master.

tendrl-spec: segragate_object_specific_flows
tendrl-bug-id: Tendrl#94
Signed-off-by: root <root@dhcp42-195.lab.eng.blr.redhat.com>
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 57.243% when pulling 10ea9e8 on nnDarshan:FixFlowExtractionIssue into ea34779 on Tendrl:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 57.243% when pulling 18afecc on nnDarshan:FixFlowExtractionIssue into ea34779 on Tendrl:master.

@r0h4n r0h4n merged commit 0aa3248 into Tendrl:master Jan 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants