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 word splitting logic #522

Closed
wants to merge 5 commits into from
Closed

Fix word splitting logic #522

wants to merge 5 commits into from

Conversation

sac-urs
Copy link
Contributor

@sac-urs sac-urs commented Dec 28, 2018

section:host split would work well in case of ipv4, however with
ipv6 the current logic failed since ipv6 has : as separator which
conflicted with section:host separator. For example with ipv6 the
lv would look like [lv1:fe80::6dc9:8205:9bd6:fb40] which confused
gdeploy. Now we handle this by splitting max 1 word.

section:host split would work well in case of ipv4, however with
ipv6 the current logic failed since ipv6 has : as separator which
conflicted with section:host separator. For example with ipv6 the
lv would look like [lv1:fe80::6dc9:8205:9bd6:fb40] which confused
gdeploy. Now we handle this by splitting max 1 word.
Since ipv6 is colon separated, ConfigParser does not handle them
gracefully, the first part is considered as a key than the
complete string being handled as an address. This change adds two
functions to handle the config files gracefully when ipv6 is used.
@sac sac closed this Apr 22, 2019
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