mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +08:00 
			
		
		
		
	Merge pull request #2944 from mheon/fix_renumber
Call the runtime with WithRenumber() when asked by 'system renumber' command
This commit is contained in:
		@ -64,6 +64,10 @@ func getRuntime(c *cliconfig.PodmanCommand, renumber bool) (*libpod.Runtime, err
 | 
				
			|||||||
		storageOpts.GraphDriverOptions = c.GlobalFlags.StorageOpts
 | 
							storageOpts.GraphDriverOptions = c.GlobalFlags.StorageOpts
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if renumber {
 | 
				
			||||||
 | 
							options = append(options, libpod.WithRenumber())
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Only set this if the user changes storage config on the command line
 | 
						// Only set this if the user changes storage config on the command line
 | 
				
			||||||
	if storageSet {
 | 
						if storageSet {
 | 
				
			||||||
		options = append(options, libpod.WithStorageConfig(storageOpts))
 | 
							options = append(options, libpod.WithStorageConfig(storageOpts))
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user