From b7b4d8543780579e902cca4e2485e3ef8347f0df Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 15 Jun 2012 18:38:10 -0700 Subject: Self variable missing --- cloudinit/distros/ubuntu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudinit/distros/ubuntu.py b/cloudinit/distros/ubuntu.py index e68f3064..6b0aff47 100644 --- a/cloudinit/distros/ubuntu.py +++ b/cloudinit/distros/ubuntu.py @@ -73,7 +73,7 @@ class Distro(distros.Distro): LOG.debug("Setting hostname to %s", hostname) util.subp(['hostname', hostname]) - def _read_hostname(filename, default=None): + def _read_hostname(self, filename, default=None): contents = util.load_file(filename, quiet=True) for line in contents.splitlines(): hpos = line.find("#") -- cgit v1.2.3