Skip to content

Conversation

papamoose
Copy link
Contributor

fixes issue where doing 'status = gluster.peer.status()' on nodes where self = true is the first item in the dict results in:
Traceback (most recent call last):
File "./monitor.py", line 8, in
status = gluster.peer.status() # retrieve peer status from all servers
File "/root/python-gluster/gluster/peer/status.py", line 12, in status
return _status(remotehost)
File "/root/python-gluster/gluster/peer/status.py", line 55, in _status
peerstatus["host"][remotehost]["uuid"] = _status(remotehost=peerstatus["host"].keys()[0],recursion=True)["host"][remotehost]["uuid"]
KeyError: '192.168.1.122'

@joejulian
Copy link
Owner

👍

joejulian added a commit that referenced this pull request Apr 15, 2015
fixes issue where code bombs when not run on the original gluster peer member
@joejulian joejulian merged commit 2a1c6c9 into joejulian:master Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants