wpietrzakpl / GlpiTools

PowerShell Module to work with Glpi API
15 stars 8 forks source link

Issue on Linux debian 10 #23

Closed tomSDL closed 2 years ago

tomSDL commented 2 years ago

Powershell 7.2.2

Hi, This works great on Windows. Same tokens and setting on Debian I get this error on each commandlet.

Get-GlpiToolsComputers -ComputerName PC037

Invoke-RestMethod: Line | 40 | $InitSession = Invoke-RestMethod @params | ~~~~~ | Name or service not known Invoke-RestMethod: Line | 40 | $InitSession = Invoke-RestMethod @params | ~~~~~ | Name or service not known Invoke-RestMethod: Line | 40 | $InitSession = Invoke-RestMethod @params | ~~~~~ | Name or service not known Invoke-RestMethod: Line | 54 | $ListSearchOptions = Invoke-RestMethod @params | ~~~~~ | Name or service not known Invoke-RestMethod: Line | 45 | Invoke-RestMethod @params | Out-Null | ~~~~~ | Name or service not known Invoke-RestMethod: Line | 126 | $SearchResult = Invoke-RestMethod @params | ~~~~~ | Name or service not known Invoke-RestMethod: Line | 45 | Invoke-RestMethod @params | Out-Null | ~~~~~ | Name or service not known Invoke-RestMethod: Line | 45 | Invoke-RestMethod @params | Out-Null | ~~~~~ | Name or service not known

Any ideas please? Thank you!

wpietrzakpl commented 2 years ago

Hi, I reproduced this on my test machine, it's a problem with how configuration parameters are store on linux Working on it

--Wojtek

wpietrzakpl commented 2 years ago

Hi https://www.powershellgallery.com/packages/GlpiTools/1.7.1

Version 1.7.1 fixed this problem

Cheers! Wojtek