mirror of https://github.com/jumpserver/jumpserver
				
				
				
			fix: 修复远程应用连接 labels 过滤问题
							parent
							
								
									6955fc1734
								
							
						
					
					
						commit
						c3820b30b8
					
				|  | @ -171,7 +171,7 @@ class Applet(JMSBaseModel): | |||
|         if not hosts: | ||||
|             return None | ||||
| 
 | ||||
|         spec_label = asset.labels.filter(name__in=['AppletHost', '发布机']).first() | ||||
|         spec_label = asset.labels.filter(label__name__in=['AppletHost', '发布机']).first() | ||||
|         if spec_label: | ||||
|             matched = [host for host in hosts if host.name == spec_label.value] | ||||
|             if matched: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Bai
						Bai