diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 12:34:33 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 12:34:33 -0700 |
commit | 45c510457910b7d0225d3bc20f372d8710cc1006 (patch) | |
tree | 28cc7855bdeb98f2e8bf3925ee3d3987ff83b4bb /cloudinit | |
parent | 1a803c9f1f55095e1cf69bd4ca12bda0299b64b4 (diff) | |
download | vyos-cloud-init-45c510457910b7d0225d3bc20f372d8710cc1006.tar.gz vyos-cloud-init-45c510457910b7d0225d3bc20f372d8710cc1006.zip |
Add comment as to why we need to check for none/empty later when fetching an ipath.
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/helpers.py | 5 |
1 files changed, 5 insertions, 0 deletions
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") |