mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Make apt upgrade=dist work and make its argument handling more idiomatic
Fixes #2287.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user