This commit is contained in:
Scott Moser
2012-09-24 20:58:05 -04:00
parent 36f2c98d46
commit 27f3ab824b

View File

@@ -1,4 +1,4 @@
# vi: ts=4 expandtab
# vi: ts=4 expandtab
#
# Copyright (C) 2012 Canonical Ltd.
# Copyright (C) 2012 Hewlett-Packard Development Company, L.P.
@@ -56,6 +56,7 @@ D_QUOTE_CHARS = {
'`': '\`',
}
def _make_sysconfig_bool(val):
if val:
return 'yes'
@@ -160,7 +161,7 @@ class Distro(distros.Distro):
def _write_hostname(self, hostname, out_fn):
host_cfg = {
'HOSTNAME': hostname,
'HOSTNAME': hostname,
}
self._update_sysconfig_file(out_fn, host_cfg)