Skip to content

Commit

Permalink
Use 'endpoint' instead of 'socket' in the status message
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Sep 12, 2013
1 parent c5f5372 commit b64eb20
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/vmpoller/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,14 @@ def process_mgmt_message(self, msg):
header = "VMPoller Worker"
msg = header + "\n"
msg += "-" * len(header) + "\n\n"
msg += "Status : Running\n"
msg += "Hostname : %s\n" % os.uname()[1]
msg += "Threads : %d\n" % self.threads_num
msg += "Broker socket : %s\n" % self.proxy_endpoint
msg += "Management socket : %s\n" % self.mgmt_endpoint
msg += "vCenter configs : %s\n" % self.vcenter_configs
msg += "vCenter Agents : %s\n" % ", ".join(self.agents.keys())
msg += "System information : %s" % " ".join(os.uname())
msg += "Status : Running\n"
msg += "Hostname : %s\n" % os.uname()[1]
msg += "Threads : %d\n" % self.threads_num
msg += "Broker endpoint : %s\n" % self.proxy_endpoint
msg += "Management endpoint : %s\n" % self.mgmt_endpoint
msg += "vCenter configs : %s\n" % self.vcenter_configs
msg += "vCenter Agents : %s\n" % ", ".join(self.agents.keys())
msg += "System information : %s" % " ".join(os.uname())
return msg
else:
return "Unknown command '%s' received" % msg["cmd"]
Expand Down Expand Up @@ -808,12 +808,12 @@ def process_mgmt_message(self, msg):
header = "VMPoller Proxy"
msg = header + "\n"
msg += "-" * len(header) + "\n\n"
msg += "Status : Running\n"
msg += "Hostname : %s\n" % os.uname()[1]
msg += "Frontend socket : %s\n" % self.frontend_endpoint
msg += "Backend socket : %s\n" % self.backend_endpoint
msg += "Management socket : %s\n" % self.mgmt_endpoint
msg += "System information : %s" % " ".join(os.uname())
msg += "Status : Running\n"
msg += "Hostname : %s\n" % os.uname()[1]
msg += "Frontend endpoint : %s\n" % self.frontend_endpoint
msg += "Backend endpoint : %s\n" % self.backend_endpoint
msg += "Management endpoint : %s\n" % self.mgmt_endpoint
msg += "System information : %s" % " ".join(os.uname())
return msg
else:
return "Unknown command '%s' received" % msg["cmd"]
Expand Down

0 comments on commit b64eb20

Please sign in to comment.