mixcoatl/infrastructure/volume.py
def detach(self, callback=None):
        """Detach a volume from a server

        :param callback: Optional callback to send the results
        :returns: :class:`Volume`
        :raises: :class:`VolumeException`
        """
        payload = '{"detach":[{}]}'
        path = self.PATH + '/' + str(self.volume_id)
        s = self.put(path, data=payload)
        if self.last_error is None:
            self.load()
            if callback is None:
                return s
            else:
                callback(s)
        else:
            raise VolumeException(self.last_error)
Detach a volume from a server

        :param callback: Optional callback to send the results
        :returns: :class:`Volume`
        :raises: :class:`VolumeException`
        
Detach a volume from a server
Detach a volume from a server
def detach(self, callback=None):
        payload = '{"detach":[{}]}'
        path = self.PATH + '/' + str(self.volume_id)
        s = self.put(path, data=payload)
        if self.last_error is None:
            self.load()
            if callback is None:
                return s
            else:
                callback(s)
        else:
            raise VolumeException(self.last_error)
def detach ( self , callback = None ) : payload = '{"detach":[{}]}' path = self . PATH + '/' + str ( self . volume_id ) s = self . put ( path , data = payload ) if self . last_error is None : self . load ( ) if callback is None : return s else : callback ( s ) else : raise VolumeException ( self . last_error )
Detach a volume from a server
Detach a volume from a server
"""Detach a volume from a server

        :param callback: Optional callback to send the results
        :returns: :class:`Volume`
        :raises: :class:`VolumeException`
        """
None
None
self
callback
Optional callback to send the results
Optional callback to send the results