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:
parent
9c78a515e1
commit
a7c072799e
|
@ -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