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 for underscore to dash conversion #34

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

mrd000
Copy link
Contributor

@mrd000 mrd000 commented Jul 1, 2020

DHCP OMAPI normally uses dashes as a separator for field words. Python does not accept dashes in kwarg keys, so there is a conversion in the __lookup function to convert _ to -. However, there seems to be a bug that prevents that conversion to be actually used for some parameters.

Tested on one of instances of dhcpd and I saw the right names (e.g. client-hostname) in the dump. (However not all fields are supported in ISC in the lookup.)

DHCP OMAPI normally uses dashes as a separator for field words. Python does not accept dashes in kwarg keys, so there is a conversion in the __lookup function to convert _ to -. However, there seems to be a bug that prevents that conversion to be actually used for some parameters.
Copy link
Contributor

@cygnusb cygnusb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you! That is a bug.

@cygnusb cygnusb merged commit e844e04 into CygnusNetworks:master Jul 1, 2020
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.

2 participants