mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use regexp type for the string.
This commit is contained in:
parent
c2ca141956
commit
6df5d500f0
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ def install(name=None,
|
|||
if version_num is None:
|
||||
targets.append(param)
|
||||
else:
|
||||
match = re.match('^([<>])?(=)?([^<>=]+)$', version_num)
|
||||
match = re.match(r'^([<>])?(=)?([^<>=]+)$', version_num)
|
||||
if match:
|
||||
gt_lt, equal, verstr = match.groups()
|
||||
prefix = gt_lt or ''
|
||||
|
|
Loading…
Add table
Reference in a new issue