diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-29 19:32:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 19:32:26 +0000 |
commit | d6cdb996bce10eb050e41b2050aaf52d9bfd3bd0 (patch) | |
tree | 1d1f7c41596c1af686f51a8bca4711f43197ad89 /cmd/podman/machine/inspect.go | |
parent | 35aa994d124675a039c89f65fb4b1c684b79b89e (diff) | |
parent | d9ff0fd15da268fae9744a60522ecdf94744b74a (diff) | |
download | podman-d6cdb996bce10eb050e41b2050aaf52d9bfd3bd0.tar.gz podman-d6cdb996bce10eb050e41b2050aaf52d9bfd3bd0.tar.bz2 podman-d6cdb996bce10eb050e41b2050aaf52d9bfd3bd0.zip |
Merge pull request #14706 from ashley-cui/rootmach
Only allow Rootless runs of Podman Machine
Diffstat (limited to 'cmd/podman/machine/inspect.go')
-rw-r--r-- | cmd/podman/machine/inspect.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/machine/inspect.go b/cmd/podman/machine/inspect.go index 4600a2b6d..d69c382f2 100644 --- a/cmd/podman/machine/inspect.go +++ b/cmd/podman/machine/inspect.go @@ -20,6 +20,7 @@ var ( Use: "inspect [options] [MACHINE...]", Short: "Inspect an existing machine", Long: "Provide details on a managed virtual machine", + PersistentPreRunE: rootlessOnly, RunE: inspect, Example: `podman machine inspect myvm`, ValidArgsFunction: autocompleteMachine, |