def getOccupancy(self, *parms, **kws): """Gets the DIPStorage occupancy info :return: S_OK/S_ERROR (free and total space, in MB) """ rpc = Client(url=self.url, timeout=120) free = rpc.getFreeDiskSpace() if not free["OK"]: return free total = rpc.getTotalDiskSpace() if not total["OK"]: return total return S_OK({"Free": free["Value"], "Total": total["Value"]})