Salt ver year.month can have 2-digit month

This commit is contained in:
knbnnate 2017-03-30 17:00:46 -04:00
parent 7c89bd47e0
commit 8c31a0c3ff
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ $ServiceName = "salt-minion"
$startupType = "Manual"
# Version to install - default to latest if there is an issue
If ($version -notmatch "201[0-9]\.[0-9]\.[0-9](\-\d{1})?"){
If ($version -notmatch "2\d{3}\.\d{1,2}\.\d+(\-\d{1})?"){
$version = '2015.5.2'
}