]> git.proxmox.com Git - pmg-api.git/commit
utils: do not hardcode postgres version
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 31 May 2021 13:53:05 +0000 (13:53 +0000)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 11 Jun 2021 14:53:45 +0000 (14:53 +0000)
commit4f06ff8ac21baa5736060221191fb109e20d8e37
tree216c5382673b657c296bee0eabade0652553a1a3
parentf91a7bf58f0e975afefbd4c0abb2c93693a46cbf
utils: do not hardcode postgres version

PMG::Utils::lookup_real_service_name is only called
for translating the service names provided as arguments
to PMG::API2::Nodes::syslog (for fetching the journal
for specific units). Instead of hardcoding the
version getting it with a call to `psql` seems justified.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/Utils.pm