From 5df61a4155018da311f4b70c1ca92cc1ea6dc402 Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Wed, 24 Jun 2015 19:06:12 +0000 Subject: [PATCH] Sync charm-helpers --- hooks/charmhelpers/contrib/python/packages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hooks/charmhelpers/contrib/python/packages.py b/hooks/charmhelpers/contrib/python/packages.py index 07b0c1d7..10b32e33 100644 --- a/hooks/charmhelpers/contrib/python/packages.py +++ b/hooks/charmhelpers/contrib/python/packages.py @@ -36,6 +36,8 @@ __author__ = "Jorge Niedbalski " def parse_options(given, available): """Given a set of options, check if available""" for key, value in sorted(given.items()): + if not value: + continue if key in available: yield "--{0}={1}".format(key, value)