[corey.bryant, r=gnuoy] charmhelper sync

This commit is contained in:
Liam Young 2015-06-26 09:21:53 +01:00
commit 89157b540e
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ __author__ = "Jorge Niedbalski <jorge.niedbalski@canonical.com>"
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)