Skip to content

Commit

Permalink
Provide more details about the unknown commands received
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Sep 11, 2013
1 parent f7a9943 commit c580c4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vmpoller/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def process_worker_message(self, msg):
elif msg["type"] == "hosts" and msg["cmd"] == "discover":
return self.agents[vcenter].discover_hosts()
else:
return "Unknown command received"
return "Unknown command '%s' received" % msg["cmd"]

def process_mgmt_message(self, msg):
"""
Expand All @@ -366,6 +366,8 @@ def process_mgmt_message(self, msg):
self.time_to_die = True
syslog.syslog("VMPoller Worker is shutting down")
return "Shutting down VMPoller Worker"
else:
return "Unknown command '%s' received" % msg["cmd"]

class VSphereAgent(VMConnector):
"""
Expand Down

0 comments on commit c580c4f

Please sign in to comment.