mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Make apt upgrade=dist work and make its argument handling more idiomatic
Fixes #2287.
This commit is contained in:
parent
67e16eebbb
commit
3d49f74df6
2 changed files with 11 additions and 14 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue