summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-09-02 14:17:38 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-09-02 14:17:38 -0700
commit7dade55ae5e429e0abb1687fb94799226c211e18 (patch)
treecf06d60b6847dd6545723146dc452c9231dad6aa /cloudinit/sources
parent128fd80cb0b27430def29bee7a8c473facd84be8 (diff)
downloadvyos-cloud-init-7dade55ae5e429e0abb1687fb94799226c211e18.tar.gz
vyos-cloud-init-7dade55ae5e429e0abb1687fb94799226c211e18.zip
Fix logic statement and pep8 issue
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py
index 7d52a2e6..a2a8f492 100644
--- a/cloudinit/sources/__init__.py
+++ b/cloudinit/sources/__init__.py
@@ -66,7 +66,7 @@ class DataSource(object):
name = name[0:-3]
self.ds_cfg = util.get_cfg_by_path(self.sys_cfg,
- ("datasource", name), {})
+ ("datasource", name), {})
if not ud_proc:
self.ud_proc = ud.UserDataProcessor(self.paths)
else:
@@ -166,7 +166,7 @@ class DataSource(object):
defhost = "localhost"
domain = defdomain
- if self.metadata or 'local-hostname' not in self.metadata:
+ if not self.metadata or 'local-hostname' not in self.metadata:
# this is somewhat questionable really.
# the cloud datasource was asked for a hostname
# and didn't have one. raising error might be more appropriate