mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Simplify logic: pythonVersion already defaults to ""
This commit is contained in:
parent
e27dd0a167
commit
12c0468e52
1 changed files with 1 additions and 4 deletions
|
@ -232,10 +232,7 @@ If (!$version) {
|
|||
}
|
||||
|
||||
$year = $version.Substring(0, 3)
|
||||
If ([int]$year -lt 2017) {
|
||||
$pythonVersion = ""
|
||||
}
|
||||
Else {
|
||||
If ([int]$year -ge 2017) {
|
||||
If ($pythonVersion -eq "3") {
|
||||
$pythonVersion = "-Py3"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue