summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/config/cc_phone_home.py4
-rw-r--r--cloudinit/user_data.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/cloudinit/config/cc_phone_home.py b/cloudinit/config/cc_phone_home.py
index d929eb64..ae1349eb 100644
--- a/cloudinit/config/cc_phone_home.py
+++ b/cloudinit/config/cc_phone_home.py
@@ -49,6 +49,8 @@ def handle(name, cfg, cloud, log, args):
ph_cfg = util.read_conf(args[0])
else:
if not 'phone_home' in cfg:
+ log.debug(("Skipping module named %s, "
+ "no 'phone_home' configuration found"), name)
return
ph_cfg = cfg['phone_home']
@@ -59,7 +61,7 @@ def handle(name, cfg, cloud, log, args):
url = ph_cfg['url']
post_list = ph_cfg.get('post', 'all')
- tries = ph_cfg.get('tries', 10)
+ tries = ph_cfg.get('tries')
try:
tries = int(tries)
except:
diff --git a/cloudinit/user_data.py b/cloudinit/user_data.py
index 91841bb8..0842594d 100644
--- a/cloudinit/user_data.py
+++ b/cloudinit/user_data.py
@@ -204,7 +204,7 @@ class UserDataProcessor(object):
outer_msg.replace_header(ATTACHMENT_FIELD, str(fetched_count))
return fetched_count
- def _part_filename(self, unnamed_part, count):
+ def _part_filename(self, _unnamed_part, count):
return PART_FN_TPL % (count + 1)
def _attach_part(self, outer_msg, part):