Permalink
Browse files

Allow env vars in deps files as well

  • Loading branch information...
1 parent c7f61f1 commit 9c7031d3363eaaad68f8d02a8360aff02b4cb1da @timf timf committed Mar 14, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 cloudinitd/persistence.py
@@ -247,8 +247,10 @@ def _load_from_conf(self, parser, section, db, conf_dir, cloud_confs, conf_file)
parser2.read(deps_file)
keys_val = parser2.items("deps")
for (ka,val) in keys_val:
- bao = BagAttrsObject(ka, val)
- self.attrs.append(bao)
+ val2 = config_get_or_none(parser2, "deps", ka)
+ if val2:
+ bao = BagAttrsObject(ka, val2)
+ self.attrs.append(bao)

0 comments on commit 9c7031d

Please sign in to comment.