Vault version in snap store may not start with 'v'
The nagios check that checks the snap store version matches the deployed assumes that the version info in the snap store starts a 'v'. If it doesn't it return None. This fixes that. Change-Id: I89f56866c78b286e7d07b43432d56aa41a0c2eb9
This commit is contained in:
parent
ebb0334905
commit
e003088277
|
@ -37,7 +37,7 @@ def get_vault_snap_version():
|
|||
version = info['result']['version']
|
||||
if version.startswith('v'):
|
||||
version = version[1:]
|
||||
return version
|
||||
return version
|
||||
|
||||
|
||||
def get_vault_server_version(verify=True):
|
||||
|
|
Loading…
Reference in New Issue