creation of hostname based on IP is broken

Bug #1050962 reported by Andy Grimm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Unassigned

Bug Description

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(".","-") ]

Related branches

Revision history for this message
Scott Moser (smoser) wrote :

fix-committed revno 648

Changed in cloud-init:
importance: Undecided → Medium
status: New → Fix Committed
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.