mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
Sort imports with ruff check --fix (#11400)
Sort imports with ruff check --fix.
This commit is contained in:
parent
0e6ba07261
commit
236b9c0e04
829 changed files with 1644 additions and 1692 deletions
|
|
@ -59,11 +59,11 @@ current_release:
|
|||
type: str
|
||||
"""
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
# Matches release-like values such as 7.2, 5.10, 6Server, 8
|
||||
# but rejects unlikely values, like 100Server, 1.100, 7server etc.
|
||||
release_matcher = re.compile(r"\b\d{1,2}(?:\.\d{1,2}|Server|Client|Workstation|)\b")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue