From 45c510457910b7d0225d3bc20f372d8710cc1006 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 16 Jun 2012 12:34:33 -0700 Subject: Add comment as to why we need to check for none/empty later when fetching an ipath. --- cloudinit/helpers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cloudinit/helpers.py b/cloudinit/helpers.py index 76faa1d5..e5c45632 100644 --- a/cloudinit/helpers.py +++ b/cloudinit/helpers.py @@ -128,6 +128,11 @@ class Runners(object): return None sem_path = None if freq == PER_INSTANCE: + # This may not exist, + # so thats why we still check for none + # below if say the paths object + # doesn't have a datasource that can + # provide this instance path... sem_path = self.paths.get_ipath("sem") elif freq == PER_ONCE: sem_path = self.paths.get_cpath("sem") -- cgit v1.2.3