File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -382,17 +382,17 @@ def nimbus_storm_version(nimbus_client):
382
382
"""Get the Storm version that Nimbus is reporting, if it's reporting it.
383
383
384
384
:returns: Storm version that Nimbus is reporting, if it's reporting it.
385
- Will return `LegacyVersion(' ')` if it's not reporting anything.
385
+ Will return `Version('0.0.0 ')` if it's not reporting anything.
386
386
:rtype: pkg_resources.Version
387
387
"""
388
- version = parse_version ( "" )
388
+ version = "0.0.0"
389
389
nimbuses = nimbus_client .getClusterInfo ().nimbuses
390
390
if nimbuses is not None :
391
391
for nimbus in nimbuses :
392
392
if nimbus .version != "VERSION_NOT_PROVIDED" :
393
- version = parse_version ( nimbus .version )
393
+ version = nimbus .version
394
394
break
395
- return version
395
+ return parse_version ( version )
396
396
397
397
398
398
def storm_lib_version ():
Original file line number Diff line number Diff line change 21
21
22
22
23
23
def _safe_int (string ):
24
- """ Simple function to convert strings into ints without dying. """
24
+ """Simple function to convert strings into ints without dying."""
25
25
try :
26
26
return int (string )
27
27
except ValueError :
You can’t perform that action at this time.
0 commit comments