[Bug 1236445] [NEW] smartos hostname assignment fails due to whitespace
Launchpad Bug Tracker
1236445 at bugs.launchpad.net
Mon Oct 7 16:15:21 UTC 2013
You have been subscribed to a public bug:
SmartOS uses whitespace when reporting the hostname via the meta-data
source. As a result, the hostname assignment fails.
Simple fix:
=== modified file 'cloudinit/sources/DataSourceSmartOS.py'
--- cloudinit/sources/DataSourceSmartOS.py 2013-10-05 01:05:21 +0000
+++ cloudinit/sources/DataSourceSmartOS.py 2013-10-07 16:12:19 +0000
@@ -145,6 +145,7 @@
if not md['local-hostname']:
md['local-hostname'] = system_uuid
+ md['local-hostname'] = md['local-hostname'].strip()
ud = None
if md['user-data']:
** Affects: cloud-init (Ubuntu)
Importance: Medium
Assignee: Ben Howard (utlemming)
Status: Confirmed
--
smartos hostname assignment fails due to whitespace
https://bugs.launchpad.net/bugs/1236445
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu.
More information about the Ubuntu-server-bugs
mailing list