mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 21:31:26 -07:00
Allowing uppercase tags in proxmox & proxmox_kvm (#10024)
* Allowing uppercase tags in proxmox & proxmox_kvm * Fix #9895 : fixes the 'not a valid tag' error message when the VM or container tag contains uppercase characters * Add PR URL to changelog fragment. --------- Co-authored-by: s1githug <sgithug@free.fr> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
e9997e08ed
commit
ce421dbd7d
4 changed files with 6 additions and 2 deletions
|
@ -1126,7 +1126,7 @@ class ProxmoxKvmAnsible(ProxmoxAnsible):
|
|||
|
||||
# VM tags are expected to be valid and presented as a comma/semi-colon delimited string
|
||||
if 'tags' in kwargs:
|
||||
re_tag = re.compile(r'^[a-z0-9_][a-z0-9_\-\+\.]*$')
|
||||
re_tag = re.compile(r'^[a-zA-Z0-9_][a-zA-Z0-9_\-\+\.]*$')
|
||||
for tag in kwargs['tags']:
|
||||
if not re_tag.match(tag):
|
||||
self.module.fail_json(msg='%s is not a valid tag' % tag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue