summaryrefslogtreecommitdiff
path: root/cmd/podman/auto-update.go
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-06 12:26:31 +0000
committerGitHub <noreply@github.com>2021-08-06 12:26:31 +0000
commit840981773325499c241d518ffbda06762cfdc759 (patch)
tree10b1d1f80c82b3c8d58864a9669cdcfd3ff7620d /cmd/podman/auto-update.go
parent0eb2a02620e28383d3e4458854411f277d1e30f7 (diff)
parent30df551bde460f4f37d6dbd373701873fa5353dc (diff)
downloadpodman-840981773325499c241d518ffbda06762cfdc759.tar.gz
podman-840981773325499c241d518ffbda06762cfdc759.tar.bz2
podman-840981773325499c241d518ffbda06762cfdc759.zip
Merge pull request #11074 from vrothberg/auto-update-rollback
auto-update: simple rollback
Diffstat (limited to 'cmd/podman/auto-update.go')
-rw-r--r--cmd/podman/auto-update.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/auto-update.go b/cmd/podman/auto-update.go
index 9622088d5..8364181d2 100644
--- a/cmd/podman/auto-update.go
+++ b/cmd/podman/auto-update.go
@@ -54,6 +54,7 @@ func init() {
_ = autoUpdateCommand.RegisterFlagCompletionFunc(authfileFlagName, completion.AutocompleteDefault)
flags.BoolVar(&autoUpdateOptions.DryRun, "dry-run", false, "Check for pending updates")
+ flags.BoolVar(&autoUpdateOptions.Rollback, "rollback", true, "Rollback to previous image if update fails")
flags.StringVar(&autoUpdateOptions.format, "format", "", "Change the output format to JSON or a Go template")
_ = autoUpdateCommand.RegisterFlagCompletionFunc("format", common.AutocompleteFormat(autoUpdateOutput{}))