mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	Merge pull request #1066 from crazy-max/fix-inspect
inspect: fix printing of driver options
This commit is contained in:
		@@ -98,11 +98,10 @@ func runInspect(dockerCli command.Cli, in inspectOptions) error {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			var driverOpts []string
 | 
								var driverOpts []string
 | 
				
			||||||
			for k, v := range n.DriverOpts {
 | 
								for k, v := range n.DriverOpts {
 | 
				
			||||||
				driverOpts = append(driverOpts, fmt.Sprintf("\t%s=%s\n", k, v))
 | 
									driverOpts = append(driverOpts, fmt.Sprintf("%s=%q", k, v))
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					 | 
				
			||||||
			if len(driverOpts) > 0 {
 | 
								if len(driverOpts) > 0 {
 | 
				
			||||||
				fmt.Fprintf(w, "Driver Options: %s", strings.Join(driverOpts, ","))
 | 
									fmt.Fprintf(w, "Driver Options:\t%s\n", strings.Join(driverOpts, " "))
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if err := ngi.drivers[i].di.Err; err != nil {
 | 
								if err := ngi.drivers[i].di.Err; err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user