Merge pull request #1126 from dagwieers/choices-fix
Fix to make sure only strings are being joined
This commit is contained in:
commit
08a77135f3
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class AnsibleModule(object):
|
|||
if type(choices) == list:
|
||||
if k in self.params:
|
||||
if self.params[k] not in choices:
|
||||
choices_str=",".join(choices)
|
||||
choices_str=",".join([str(c) for c in choices])
|
||||
msg="value of %s must be one of: %s, got: %s" % (k, choices_str, self.params[k])
|
||||
self.fail_json(msg=msg)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue