summaryrefslogtreecommitdiff
path: root/cmd/podman/root.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-10 16:21:12 -0400
committerGitHub <noreply@github.com>2020-08-10 16:21:12 -0400
commitf642b0482f49a7046ca7da5b4a736b6b0ab54eca (patch)
treedfbd7521bd943096a52cd4db1c5593440034a671 /cmd/podman/root.go
parent68fd9aa2cf67a749258ccdc6fa8fd89c2557ebfc (diff)
parentcd74f66bad464f03353321184466da61032b78a5 (diff)
downloadpodman-f642b0482f49a7046ca7da5b4a736b6b0ab54eca.tar.gz
podman-f642b0482f49a7046ca7da5b4a736b6b0ab54eca.tar.bz2
podman-f642b0482f49a7046ca7da5b4a736b6b0ab54eca.zip
Merge pull request #7221 from baude/issue7127
remove --latest for all remote commands
Diffstat (limited to 'cmd/podman/root.go')
-rw-r--r--cmd/podman/root.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/cmd/podman/root.go b/cmd/podman/root.go
index 9e9011dc9..2aa7267c2 100644
--- a/cmd/podman/root.go
+++ b/cmd/podman/root.go
@@ -6,7 +6,6 @@ import (
"path"
"runtime"
"runtime/pprof"
- "strconv"
"strings"
"github.com/containers/common/pkg/config"
@@ -112,15 +111,6 @@ func persistentPreRunE(cmd *cobra.Command, args []string) error {
cfg := registry.PodmanConfig()
- // Validate --remote and --latest not given on same command
- latest := cmd.Flags().Lookup("latest")
- if latest != nil {
- value, _ := strconv.ParseBool(latest.Value.String())
- if cfg.Remote && value {
- return errors.Errorf("For %s \"--remote\" and \"--latest\", are mutually exclusive flags", cmd.CommandPath())
- }
- }
-
// Prep the engines
if _, err := registry.NewImageEngine(cmd, args); err != nil {
return err