提交 c0ace470 编写于 作者: S sjtubinlong

fix bug: get fullname match module while install

上级 2b4494a6
...@@ -151,6 +151,9 @@ class HubServer(object): ...@@ -151,6 +151,9 @@ class HubServer(object):
api_url = srv_utils.uri_path(self.get_server_url(), 'search') api_url = srv_utils.uri_path(self.get_server_url(), 'search')
r = srv_utils.hub_request(api_url, payload) r = srv_utils.hub_request(api_url, payload)
if r['status'] == 0 and len(r['data']) > 0: if r['status'] == 0 and len(r['data']) > 0:
for item in r['data']:
if resource_name.lower() == item['name'].lower():
return item
return r['data'][0] return r['data'][0]
except: except:
if self.config.get('debug', False): if self.config.get('debug', False):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册