summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-04-15 09:39:17 -0700
committerGitHub <noreply@github.com>2019-04-15 09:39:17 -0700
commitc1e2b583c82261639d6927c9b2a4f19d87a166a7 (patch)
treed850f9b31b3e6f66d343b1a8a498dc76a879d2b8 /cmd
parent6f3f0267f28273053c531d262f3e9515e808bf2d (diff)
parent936537cfe752e82f4782d6b8f5ff2ff85132c555 (diff)
downloadpodman-c1e2b583c82261639d6927c9b2a4f19d87a166a7.tar.gz
podman-c1e2b583c82261639d6927c9b2a4f19d87a166a7.tar.bz2
podman-c1e2b583c82261639d6927c9b2a4f19d87a166a7.zip
Merge pull request #2944 from mheon/fix_renumber
Call the runtime with WithRenumber() when asked by 'system renumber' command
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/libpodruntime/runtime.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/libpodruntime/runtime.go b/cmd/podman/libpodruntime/runtime.go
index 3faea493c..78adf1252 100644
--- a/cmd/podman/libpodruntime/runtime.go
+++ b/cmd/podman/libpodruntime/runtime.go
@@ -64,6 +64,10 @@ func getRuntime(c *cliconfig.PodmanCommand, renumber bool) (*libpod.Runtime, err
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
if storageSet {
options = append(options, libpod.WithStorageConfig(storageOpts))