def METHOD_NAME(self, result, error=False, server=None, context={}, **kwargs):
    if error:
        if result:
            log.error(result["message"])
        else:
            log.error("Cannot create snapshot of project")
        return
    self._listSnapshots()