Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iosxr_users: fix type validation for groups #65

Conversation

vincentbernat
Copy link

SUMMARY

Following the documentation, groups should be a list of strings.
Moreover, the code also assume this is a list of strings (iterate on
it and append to a string). However, when providing a list of strings,
the module complains it expects a list of dict:

Elements value for option groups is of type <class 'str'> and we were
unable to convert to dict: dictionary requested, could not parse JSON
or key=value
ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

iosxr_user

Following the documentation, groups should be a list of strings.
Moreover, the code also assume this is a list of strings (iterate on
it and append to a string). However, when providing a list of strings,
the module complains it expects a list of dict:

    Elements value for option groups is of type <class 'str'> and we were
    unable to convert to dict: dictionary requested, could not parse JSON
    or key=value
@rohitthakur2590
Copy link
Contributor

Hi!

Thanks very much for your interest in Ansible. It sincerely means a lot to us.

This appears to be fixed in #62 with updated documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants