Skip to content

Commit 1cc82c4

Browse files
author
Clark Perkins
committed
parse_version sometimes returns a tuple?
1 parent e7168a3 commit 1cc82c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackdio/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, url=None, username=None, password=None, verify=None, cfg_file
6868
raw_version = None
6969
self.version = None
7070

71-
if self.version and not self.version.base_version.startswith('0.8'):
71+
if self.version and (int(self.version[0]) != 0 or int(self.version[1]) != 8):
7272
raise IncompatibleVersionException(
7373
'Server version {0} not supported. Please upgrade '
7474
'stackdio-cli to {1}.{2}.0 or higher.'.format(raw_version, *self.version)

0 commit comments

Comments
 (0)