mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-11-01 00:49:04 +08:00 
			
		
		
		
	skip same host
This commit is contained in:
		
							parent
							
								
									599656618d
								
							
						
					
					
						commit
						e322ccee09
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -299,6 +299,9 @@ func GetRelatedHosts(hostID string) []models.Host { | |||
| 	hosts, err := GetAllHosts() | ||||
| 	if err == nil { | ||||
| 		for _, host := range hosts { | ||||
| 			if host.ID.String() == hostID { | ||||
| 				continue | ||||
| 			} | ||||
| 			networks := GetHostNetworks(host.ID.String()) | ||||
| 			for _, network := range networks { | ||||
| 				if _, ok := networkMap[network]; ok { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue