Skip to content

Commit

Permalink
Fix PyLint C0103 on salt.modules.rabbitmq. Refs saltstack#1775.
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Dec 28, 2012
1 parent d538cfa commit b33179a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions salt/modules/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ def list_users(runas=None):
salt '*' rabbitmq.list_users
'''
d = {}
ret = {}
res = __salt__['cmd.run']('rabbitmqctl list_users')
for line in res.splitlines():
if '...' not in line or line == '\n':
s = line.split('\t')
if len(s) < 2:
parts = line.split('\t')
if len(parts) < 2:
continue
user, properties = s[0], s[1]
d[user] = properties
return d
user, properties = parts[0], parts[1]
ret[user] = properties
return ret


def list_vhosts(runas=None):
Expand Down

0 comments on commit b33179a

Please sign in to comment.