Skip to content

Commit

Permalink
bugfix: variable reference fix
Browse files Browse the repository at this point in the history
  • Loading branch information
homholueng committed Jan 6, 2020
1 parent c546b41 commit 7da44a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipeline_plugins/components/utils/sites/open/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def cc_get_ips_info_by_str(username, biz_cc_id, ip_str, use_cache=True):
ip_list = cc_get_ip_list_by_biz_and_user(username=username, biz_cc_id=biz_cc_id, use_cache=use_cache)
for ip_info in ip_list:
set_dict = {s['bk_set_id']: s for s in ip_info['set']}
for module in ip_info['module']:
if '%s|%s|%s' % (set_dict[module['bk_set_id']]['bk_set_name'],
module['bk_module_name'],
for mod in ip_info['module']:
if '%s|%s|%s' % (set_dict[mod['bk_set_id']]['bk_set_name'],
mod['bk_module_name'],
ip_info['host']['bk_host_innerip']) in set_module_ip:
ip_result.append({'InnerIP': ip_info['host']['bk_host_innerip'],
'HostID': ip_info['host']['bk_host_id'],
Expand Down

0 comments on commit 7da44a6

Please sign in to comment.