Sync charm-helpers.

This commit is contained in:
Corey Bryant 2015-06-24 19:17:17 +00:00
parent 36df26a07f
commit dc3f63bc0c
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
branch: lp:charm-helpers
branch: lp:charm-helpers
destination: tests/charmhelpers
include:
- contrib.amulet

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)