Make apt upgrade=dist work and make its argument handling more idiomatic

Fixes #2287.
This commit is contained in:
Daniel Hokka Zakrisson 2013-03-05 23:46:34 +01:00
parent 67e16eebbb
commit 3d49f74df6
2 changed files with 11 additions and 14 deletions

View file

@ -527,7 +527,7 @@ class AnsibleModule(object):
for check in spec:
count = self._count_terms(check)
if count == 0:
self.fail_json(msg="one of the following is required: %s" % check)
self.fail_json(msg="one of the following is required: %s" % ','.join(check))
def _check_required_together(self, spec):
if spec is None: