From 54f4e51c507242bf2ba011b2329a61492a60dff8 Mon Sep 17 00:00:00 2001 From: Calogero Lo Leggio Date: Wed, 9 Oct 2019 11:22:31 +0200 Subject: [PATCH] grab PVE version without revision (ex: 6.0 not 6.0-7) this avoid error with float() --- proxmox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox.py b/proxmox.py index 0c87d21..66cc9e2 100755 --- a/proxmox.py +++ b/proxmox.py @@ -86,7 +86,7 @@ class ProxmoxPoolList(list): class ProxmoxVersion(dict): def get_version(self): - return float(self['version']) + return float(self['version'].split('-')[0]) class ProxmoxPool(dict):