mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-11-04 01:51:04 +01:00 
			
		
		
		
	fix: loop over result machines instead of startup machines
This commit is contained in:
		
							parent
							
								
									72c1edaaa4
								
							
						
					
					
						commit
						49ec9943b9
					
				@ -630,7 +630,7 @@ func (s *IntegrationCLITestSuite) TestNodeTagCommand() {
 | 
				
			|||||||
	assert.Nil(s.T(), err)
 | 
						assert.Nil(s.T(), err)
 | 
				
			||||||
	json.Unmarshal([]byte(listAllResult), &resultMachines)
 | 
						json.Unmarshal([]byte(listAllResult), &resultMachines)
 | 
				
			||||||
	found := false
 | 
						found := false
 | 
				
			||||||
	for _, machine := range machines {
 | 
						for _, machine := range resultMachines {
 | 
				
			||||||
		if machine.ForcedTags != nil {
 | 
							if machine.ForcedTags != nil {
 | 
				
			||||||
			for _, tag := range machine.ForcedTags {
 | 
								for _, tag := range machine.ForcedTags {
 | 
				
			||||||
				if tag == "tag:test" {
 | 
									if tag == "tag:test" {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user