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']:
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/ DataSourceSmart OS.py' sources/ DataSourceSmart OS.py 2013-10-05 01:05:21 +0000 sources/ DataSourceSmart OS.py 2013-10-07 16:12:19 +0000
--- cloudinit/
+++ cloudinit/
@@ -145,6 +145,7 @@
if not md['local- hostname' ]:
md[ 'local- hostname' ] = system_uuid hostname' ] = md['local- hostname' ].strip( )
+ md['local-
ud = None
if md['user-data']: