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

creation of hostname based on IP is broken #2296

Closed
ubuntu-server-builder opened this issue May 9, 2023 · 1 comment
Closed

creation of hostname based on IP is broken #2296

ubuntu-server-builder opened this issue May 9, 2023 · 1 comment
Labels
launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1050962

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = 2012-10-01T18:25:51.115411+00:00
date_created = 2012-09-14T15:24:19.764417+00:00
date_fix_committed = 2012-09-19T20:45:58.338137+00:00
date_fix_released = 2012-10-01T18:25:51.115411+00:00
id = 1050962
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1050962
milestone = None
owner = agrimm
owner_name = Andy Grimm
private = False
status = fix_released
submitter = agrimm
submitter_name = Andy Grimm
tags = []
duplicates = []

Launchpad user Andy Grimm(agrimm) wrote on 2012-09-14T15:24:19.764417+00:00

When the logic to determine whether local-hostname is an IPv4 address was moved, it introduced a bug. Now DataSource.get_hostname returns "i" instead of "ip-xx-xx-xx-xx". this is due to:

toks = "ip-%s" % lhost.replace(".","-")

which should be

toks = [ "ip-%s" % lhost.replace(".","-") ]

@ubuntu-server-builder ubuntu-server-builder added the launchpad Migrated from Launchpad label May 9, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2012-09-19T20:45:57.878433+00:00

fix-committed revno 648

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant