Make .dockercfg with json.MarshallIndent
Fixes #10129 Makes the .dockercfg more human parsable. Also cleaned up the (technically) racey login test. Signed-off-by: Brian Goff <cpuguy83@gmail.com>master
							parent
							
								
									1f98347924
								
							
						
					
					
						commit
						4eaf644321
					
				| 
						 | 
				
			
			@ -133,7 +133,7 @@ func SaveConfig(configFile *ConfigFile) error {
 | 
			
		|||
		configs[k] = authCopy
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	b, err := json.Marshal(configs)
 | 
			
		||||
	b, err := json.MarshalIndent(configs, "", "\t")
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue