Sync charm-helpers

This commit is contained in:
Corey Bryant 2015-06-24 19:06:12 +00:00
parent ed9afce96c
commit 5df61a4155

View File

@ -36,6 +36,8 @@ __author__ = "Jorge Niedbalski <jorge.niedbalski@canonical.com>"
def parse_options(given, available): def parse_options(given, available):
"""Given a set of options, check if available""" """Given a set of options, check if available"""
for key, value in sorted(given.items()): for key, value in sorted(given.items()):
if not value:
continue
if key in available: if key in available:
yield "--{0}={1}".format(key, value) yield "--{0}={1}".format(key, value)