Skip to content

Commit a9dd4ff

Browse files
committed
fix Python version comparison issue
Signed-off-by: hwassman <[email protected]>
1 parent a95968b commit a9dd4ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/zimonGrafanaIntf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ def main(argv):
208208
print(msg)
209209
return
210210

211-
if sys.version < '3.8':
211+
print(sys.version_info >= (3,8))
212+
if (sys.version_info < (3,8)):
212213
print(f'\nYor system running {sys.version} \n\nThe IBM Storage Scale bridge for Grafana requires Python3.8 or above. \
213214
\nRead the following instructions for possible solution: \
214215
\nhttps://github.com/IBM/ibm-spectrum-scale-bridge-for-grafana/wiki/What-to-do-if-your-system-is-on-a-Python-version-lower-than-3.8')

0 commit comments

Comments
 (0)