Mark describe server method as static

This commit is contained in:
Sajith Sasidharan 2020-05-01 17:42:46 -04:00
parent 80a26e26b1
commit df9b160a3c

@ -449,7 +449,8 @@ class RootElement(Element):
sb = self._client.get_storage_broker()
return sorted(sb.get_known_servers(), key=lambda s: s.get_serverid())
def _describe_server(self, server):
@staticmethod
def _describe_server(server):
"""Return a dict containing server stats."""
peerid = server.get_longname()
nickname = server.get_nickname()