Nagios check should always return snap version

Currently the Nagios check will only return the version of the currently
installed snap if it has the prefix "v". This is not always the case,
the committed change fixes this behaviour.

Change-Id: I7e7567f7b3cdc2821afc6be47545c6778180a731
This commit is contained in:
Barry Price 2018-06-01 19:45:59 +07:00
parent 9c78a515e1
commit a7c072799e
No known key found for this signature in database
GPG Key ID: 2387DE5D0184DA32
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):