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

Removing forcing Attribute.CODE.ATOMIC_AGGREGATE into _generate_json loop. #227

Merged
merged 1 commit into from
Feb 21, 2015

Conversation

icb-
Copy link
Contributor

@icb- icb- commented Feb 21, 2015

_generate_json in exabgp.bgp.message.update.attribute.attributes.Attributes loops through the keys of the dict given, plus Attribute.CODE.ATOMIC_AGGREGATE. Forcing that into the loop causes a KeyError if it wasn't already there. If it was already there, then adding it again isn't needed.

This also brings _generate_json in line with what _generate_text loops through.

thomas-mangin added a commit that referenced this pull request Feb 21, 2015
Removing forcing Attribute.CODE.ATOMIC_AGGREGATE into _generate_json loop.
@thomas-mangin thomas-mangin merged commit 1498b20 into Exa-Networks:master Feb 21, 2015
@thomas-mangin
Copy link
Member

Thank you, not sure why I did that !

@icb- icb- deleted the impossible-loop branch February 21, 2015 12:54
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

2 participants