summaryrefslogtreecommitdiff
path: root/cmd/podman/machine/set.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/machine/set.go')
-rw-r--r--cmd/podman/machine/set.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/machine/set.go b/cmd/podman/machine/set.go
index 5777882da..1b9e1b2bd 100644
--- a/cmd/podman/machine/set.go
+++ b/cmd/podman/machine/set.go
@@ -18,6 +18,7 @@ var (
Use: "set [options] [NAME]",
Short: "Sets a virtual machine setting",
Long: "Sets an updatable virtual machine setting",
+ PersistentPreRunE: rootlessOnly,
RunE: setMachine,
Args: cobra.MaximumNArgs(1),
Example: `podman machine set --rootful=false`,