mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Pylint fix
This commit is contained in:
parent
b4366103a6
commit
20dd5593cd
@ -119,7 +119,7 @@ def _iisVersion():
|
|||||||
try:
|
try:
|
||||||
items = json.loads(cmd_ret['stdout'], strict=False)
|
items = json.loads(cmd_ret['stdout'], strict=False)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
_LOG.error('Unable to parse return data as Json.')
|
log.error('Unable to parse return data as Json.')
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
return decimal.Decimal("{0}.{1}".format(items[0]['MajorVersion'], items[0]['MinorVersion']))
|
return decimal.Decimal("{0}.{1}".format(items[0]['MajorVersion'], items[0]['MinorVersion']))
|
||||||
|
Loading…
Reference in New Issue
Block a user