SynologyDSM/SynologyDSM.py
def _get_volume(self, volume_id):
        """Returns a specific volume"""
        if self._data is not None:
            for volume in self._data["volumes"]:
                if volume["id"] == volume_id:
                    return volume
def _get_volume(self, volume_id):
        if self._data is not None:
            for volume in self._data["volumes"]:
                if volume["id"] == volume_id:
                    return volume
def _get_volume ( self , volume_id ) : if self . _data is not None : for volume in self . _data [ "volumes" ] : if volume [ "id" ] == volume_id : return volume
Returns a specific volume
Returns a specific volume