Cyberwatch / cyberwatch_api

Python Api client for the Cyberwatch software
MIT License
4 stars 6 forks source link

add ping to CLI #58

Closed PierreHachard closed 5 months ago

PierreHachard commented 5 months ago

If you happen to have wrong API keys, CLI throws random errors depending on the options you call.

Before using options like "airgap" or "os", the cyberwatch-cli now tries to ping the API to make sure everything is ok before requesting Cyberwatch

Also changed "--no-attachment" to "--add-attachment" as it makes more sense as the value is "False" by default