Merge pull request #329 from lucdekens/master

On the off chance someone does not have PowerCLI installed
This commit is contained in:
Kyle Ruddy
2019-11-18 18:56:53 -05:00
committed by GitHub

View File

@@ -89,7 +89,7 @@ function Set-Title
$pcliModule = Get-Module -Name VMware.PowerCLI -ListAvailable |
Sort-Object -Property Version -Descending |
Select-Object -First 1
$pcli = " - PCLI: $($pcliModule.Version.ToString())"
$pcli = " - PCLI: $(if($pcliModule){$pcliModule.Version.ToString()}else{'na'})"
# If git is present and if in a git controlled folder, display repositoryname/current_branch
$gitStr = ''