From 8c31a0c3ff61aa448d798026ea643e5ae24cc121 Mon Sep 17 00:00:00 2001 From: knbnnate Date: Thu, 30 Mar 2017 17:00:46 -0400 Subject: [PATCH] Salt ver year.month can have 2-digit month --- plugins/provisioners/salt/bootstrap-salt.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/salt/bootstrap-salt.ps1 b/plugins/provisioners/salt/bootstrap-salt.ps1 index 0ed06f7eb..2df9786c1 100644 --- a/plugins/provisioners/salt/bootstrap-salt.ps1 +++ b/plugins/provisioners/salt/bootstrap-salt.ps1 @@ -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' }