mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
pylint W0141, W0702
This commit is contained in:
parent
f8518939a7
commit
77a51a00a3
1 changed files with 4 additions and 2 deletions
|
@ -307,8 +307,10 @@ def check_password(name, password, runas=None):
|
|||
'''
|
||||
# try to get the rabbitmq-version - adapted from _get_rabbitmq_plugin
|
||||
try:
|
||||
version = map(int, __salt__['pkg.version']('rabbitmq-server').split('-')[0].split('.'))
|
||||
except:
|
||||
version = [int(i) for i in __salt__['pkg.version']('rabbitmq-server').split('-')[0].split('.')]
|
||||
except ValueError:
|
||||
version = (0, 0, 0)
|
||||
if len(version) < 3:
|
||||
version = (0, 0, 0)
|
||||
|
||||
if runas is None:
|
||||
|
|
Loading…
Add table
Reference in a new issue