Closed DexterPOSH closed 7 years ago
Fix for this issue must allow passing Null values -ArgumentList parameter to ReinitializeSession function. Since during the bootstrap phase in the Node function, this function is called by default.
So even if the ArgumentList is empty, this function should be able to run.
Fixed in #24
Function CreateSessions in Private\RemoteSession.ps1 Line - 137 says
# set the variables in the remote pssession
ReinitializeSession -SessionInfo $PSRemotely.sessionHashTable[$node] -ArgumentList $argumentList
Where the $Node is flowing from the configuration data, it should be replaced by $Node.NodeName
Serious bug, this was never used but we should be able to pass a hashtable Key-Value pairs to the -ArgumentList to PSRemotely and have access to the variables with name (key) inside the underlying PSSessions to the remote nodes.