ansible / ansible-modules-core

Ansible modules - these modules ship with ansible
1.3k stars 1.95k forks source link

Permit table names that contain a colon #5918

Closed janos97 closed 7 years ago

janos97 commented 7 years ago

During testing, we found that any table containing a colon would result in errors. priv = "*.*:USAGE/xxxx-web-prod:wordpress.*:ALL"

The existing code splits "xxxx-web-prod:wordpress.:ALL" into a list with three values which will cause errors when dbpriv is evaluated. ['xxxx-web-prod', 'wordpress`.', 'ALL']`

Using rsplit(':', 1) on the string results in a list with two values as expected. ['xxxx-web-prod:wordpress.*', 'ALL']

This repository is locked

Please open all new issues and pull requests in https://github.com/ansible/ansible

For more information please see http://docs.ansible.com/ansible/dev_guide/repomerge.html

ansibot commented 7 years ago

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide.