Adding test cases for all environments for
both puppetdb 3.2.0 and 4.2.0
This commit is contained in:
@@ -31,10 +31,13 @@ def get_db_version(puppetdb):
|
||||
'''
|
||||
ver = ()
|
||||
try:
|
||||
(major, minor, build) = [int(x) for x in
|
||||
puppetdb.current_version().split('.')]
|
||||
version = puppetdb.current_version()
|
||||
(major, minor, build) = [int(x) for x in version.split('.')]
|
||||
ver = (major, minor, build)
|
||||
log.info("PuppetDB Version %d.%d.%d" % (major, minor, build))
|
||||
except ValueError as e:
|
||||
log.error("Unable to determine version from string: '%s'" % version)
|
||||
ver = (4, 2, 0)
|
||||
except HTTPError as e:
|
||||
log.error(str(e))
|
||||
except ConnectionError as e:
|
||||
|
||||
Reference in New Issue
Block a user