Skip to content
Browse files

Fix classic python bug

  • Loading branch information...
1 parent 5105ef1 commit a2c026fe43ed8acc4c03bb16628d477b6e51e33d @labisso labisso committed Dec 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cloudinitd/services.py
View
2 cloudinitd/services.py
@@ -516,7 +516,7 @@ def _expand_attr(self, val):
subs = self.get_dep(attr_name)
ndx = val.find(match.group(0)) + len(match.group(0))
- if subs:
+ if subs is not None:
val = val.replace(match.group(0), subs)
match = pattern.search(val[ndx:])
return val

0 comments on commit a2c026f

Please sign in to comment.
Something went wrong with that request. Please try again.