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:
Liam Young 2018-06-14 13:51:25 +00:00
parent ebb0334905
commit e003088277
1 changed files with 1 additions and 1 deletions

View File

@ -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):