mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	registry: fix ServerAddress setting
This ensures that ServerAddress is set, while previously it was getting set after configFile.Configs. Signed-off-by: Vaidas Jablonskis <jablonskis@gmail.com>
This commit is contained in:
		
							parent
							
								
									c59b308b6b
								
							
						
					
					
						commit
						d96832cbd2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -126,8 +126,8 @@ func LoadConfig(rootPath string) (*ConfigFile, error) {
 | 
			
		|||
				return &configFile, err
 | 
			
		||||
			}
 | 
			
		||||
			authConfig.Auth = ""
 | 
			
		||||
			configFile.Configs[k] = authConfig
 | 
			
		||||
			authConfig.ServerAddress = k
 | 
			
		||||
			configFile.Configs[k] = authConfig
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	return &configFile, nil
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue