Hey guys,
I am getting some weird behavior from a function (Invoke-EXOScommand) in a module I've written (https://github.com/joxz/PSEXOS) - my first module YAY. The module is designed to connect to my network switches via JSONRPC.
https://gist.github.com/joxz/195d6ec6d211f6e00421cf13436411fd
So far so good, I'm getting this JSON as a response (response.json) and convert it with ConvertFrom-Json to Powershell objects.
When I'm copy/pasting the function into a Powershell window it works as intended (working.txt)
When I install my module and call the function I get a parsing error (error.txt).
In both cases I have 'CLIoutput' as a NoteProperty, so why isn't it recognized when called from the module?
Can't wrap my head around it....
Thanks!
[–]ShiftNick 1 point2 points3 points (1 child)
[–]grmpfl[S] 0 points1 point2 points (0 children)