grab PVE version without revision (ex: 6.0 not 6.0-7)
this avoid error with float()
This commit is contained in:
parent
7c9db8416b
commit
54f4e51c50
|
@ -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):
|
||||
|
|
Reference in New Issue