opsi-cli uninstall tries uninstall multiple times for same depot
Verfasst: 12 Jun 2025, 00:37
If I run the `opsi-cli package uninstall` command, the multiple depots, the same/first depots is used multiple times, causing the uninstall to fail.
Running the command only for a single depot is completed.
Running the command only for a single depot is completed.
Code: Alles auswählen
root@opsi:~# opsi-cli package uninstall --depots opsi-depot-nz.moll-nz.lan,opsi-depot-strasbourg.moll-strassbourg.lan photoshopcc
Uninstalling 'photoshopcc' from depot 'opsi-depot-nz.moll-nz.lan'... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Uninstalling 'photoshopcc' from depot 'opsi-depot-nz.moll-nz.lan'... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--
╭─ Error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Opsi rpc error: Backend error: Failed to uninstall product 'photoshopcc' on depot 'opsi-depot-nz.moll-nz.lan': Backend bad value error: Product 'photoshopcc' is not installed on depot 'opsi-depot-nz.moll-nz.lan' │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Code: Alles auswählen
root@opsi:~# opsi-cli package uninstall --depots opsi-depot-strasbourg.moll-strassbourg.lan photoshopcc
Uninstalling 'photoshopcc' from depot 'opsi-depot-strasbourg.moll-strassbourg.lan'... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Code: Alles auswählen
root@opsi:~# opsi-cli --version
opsi-cli version 4.3.23.3