summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorBen Howard <ben.howard@canonical.com>2013-10-07 10:20:21 -0600
committerBen Howard <ben.howard@canonical.com>2013-10-07 10:20:21 -0600
commitc99f4e6fdf33bb0d2688d427514cb42821e8febb (patch)
tree8fdeade52a8741c5e95597d14e83579825f9ec6c /cloudinit
parent12f2fbf8588af097c3922d4398d59124687d6ded (diff)
downloadvyos-cloud-init-c99f4e6fdf33bb0d2688d427514cb42821e8febb.tar.gz
vyos-cloud-init-c99f4e6fdf33bb0d2688d427514cb42821e8febb.zip
Fixed SmartOS hostname whitespace bug (LP: #1236445).
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/sources/DataSourceSmartOS.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceSmartOS.py b/cloudinit/sources/DataSourceSmartOS.py
index ba7e6acc..8c575fc0 100644
--- a/cloudinit/sources/DataSourceSmartOS.py
+++ b/cloudinit/sources/DataSourceSmartOS.py
@@ -274,7 +274,7 @@ def dmi_data():
except Exception as e:
util.logexc(LOG, "Failed to get system UUID", e)
- return sys_uuid.lower(), sys_type
+ return (sys_uuid.lower()).strip(), sys_type.strip()
# Used to match classes to dependencies