resource_handle.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:trio2o 作者: openstack 项目源码 文件源码
def handle_action(self, cxt, resource, action, *args, **kwargs):
        try:
            client = self._get_client(cxt)
            collection = '%ss' % resource
            resource_manager = getattr(client, collection)
            getattr(resource_manager, action)(*args, **kwargs)
        except r_exceptions.ConnectTimeout:
            self.endpoint_url = None
            raise exceptions.EndpointNotAvailable('cinder',
                                                  client.client.management_url)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号