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

Implement Record.__getitem__() #282

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

vincentbernat
Copy link
Contributor

The current implementation returns the provided key. This is confusing
for the user as it is unexpected. Instead, we turn ourselves into a
dict and return the expected value. This is not really efficient but
the whole logic is already implemented in other functions.

Fix #281.

The current implementation returns the provided key. This is confusing
for the user as it is unexpected. Instead, we turn ourselves into a
dict and return the expected value. This is not really efficient but
the whole logic is already implemented in other functions.

Fix netbox-community#281.
@zachmoody
Copy link
Contributor

Well that's elegant. Nice! Thanks for the PR.

@zachmoody zachmoody merged commit 83ee65c into netbox-community:master Aug 18, 2020
@MattIPv4
Copy link

Hey, @vincentbernat - Thanks a ton for this sweet PR! 😄

Would you please shoot me an email when you get a chance?
mcowley at digitalocean dot com 🎉

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.

__getitem__() for Record sends back its argument
3 participants