Werk #13128: agent_vsphere: Fix bug occuring when vSphere secret has a special format
Komponente | Checks & agents |
Titel | agent_vsphere: Fix bug occuring when vSphere secret has a special format |
Datum | 06.10.2021 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 2.0.0p13 2.1.0b1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
When specifying a vSphere secret starting with a dash (a "-"), the vsphere special agent will run into an error, because the secret will get recognized as an additional command line argument by it's argument parser.
This is fixed now by passing this argument in a more robust way.