X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Fcephfs_clients.py;fp=src%2Fceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Fcephfs_clients.py;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=40d79713f3b55f5b8be902d88fc41330767333fb;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/pybind/mgr/dashboard/cephfs_clients.py b/src/ceph/src/pybind/mgr/dashboard/cephfs_clients.py deleted file mode 100644 index 40d7971..0000000 --- a/src/ceph/src/pybind/mgr/dashboard/cephfs_clients.py +++ /dev/null @@ -1,25 +0,0 @@ - -import json - -from mgr_module import CommandResult -from remote_view_cache import RemoteViewCache - - -class CephFSClients(RemoteViewCache): - def __init__(self, module_inst, fscid): - super(CephFSClients, self).__init__(module_inst) - - self.fscid = fscid - - def _get(self): - mds_spec = "{0}:0".format(self.fscid) - result = CommandResult("") - self._module.send_command(result, "mds", mds_spec, - json.dumps({ - "prefix": "session ls", - }), - "") - r, outb, outs = result.wait() - # TODO handle nonzero returns, e.g. when rank isn't active - assert r == 0 - return json.loads(outb)