We script and use pvesh for almost everything. either on the command line or called from python. these python scripts are slow from multiple get calls.
are there any hidden pitfalls, race conditions, etc that could happen with getting data by parsing the config files in /etc/pve as opposed to the rest api?
i dont mind the time delay in using the api for setting state as it also gives a layer of error checking.
are there any hidden pitfalls, race conditions, etc that could happen with getting data by parsing the config files in /etc/pve as opposed to the rest api?
i dont mind the time delay in using the api for setting state as it also gives a layer of error checking.