summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/distros/fedora.py2
-rw-r--r--cloudinit/patcher.py1
-rw-r--r--cloudinit/sources/__init__.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/distros/fedora.py b/cloudinit/distros/fedora.py
index 9f76a116..e7092dd8 100644
--- a/cloudinit/distros/fedora.py
+++ b/cloudinit/distros/fedora.py
@@ -28,5 +28,5 @@ LOG = logging.getLogger(__name__)
class Distro(rhel.Distro):
- distro_name = 'fedora'
+ distro_name = 'fedora'
default_user = 'ec2-user'
diff --git a/cloudinit/patcher.py b/cloudinit/patcher.py
index 8921a79a..fa140f04 100644
--- a/cloudinit/patcher.py
+++ b/cloudinit/patcher.py
@@ -39,6 +39,7 @@ def _patch_logging():
# sys.stderr using a fallback logger
fallback_handler = QuietStreamHandler(sys.stderr)
fallback_handler.setFormatter(logging.Formatter(FALL_FORMAT))
+
def handleError(self, record):
try:
fallback_handler.handle(record)
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py
index 6f126091..04083d0c 100644
--- a/cloudinit/sources/__init__.py
+++ b/cloudinit/sources/__init__.py
@@ -173,7 +173,7 @@ class DataSource(object):
# make up a hostname (LP: #475354) in format ip-xx.xx.xx.xx
lhost = self.metadata['local-hostname']
if util.is_ipv4(lhost):
- toks = [ "ip-%s" % lhost.replace(".", "-") ]
+ toks = ["ip-%s" % lhost.replace(".", "-")]
else:
toks = lhost.split(".")