adds community contribution for CiscoUCS connection fix #63

Merged
OCram85 merged 1 commits from fixConnect into master 2022-07-15 11:25:11 +02:00
Showing only changes of commit b99d308b82 - Show all commits

View File

@ -177,7 +177,7 @@ function Connect-To {
switch ($Type) { switch ($Type) {
"CiscoUcs" { "CiscoUcs" {
try { try {
$handle = Connect-Ucs -Name $RemoteHost -Credential $creds -ErrorAction Stop $handle = Connect-Ucs -Name $RemoteHost -Credential $creds -ErrorAction 'Stop' -NotDefault
$ExecutionContext.SessionState.PSVariable.Set('DefaultUcs', $handle) $ExecutionContext.SessionState.PSVariable.Set('DefaultUcs', $handle)
} }