summaryrefslogtreecommitdiff
path: root/cmd/podman/system
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2022-04-04 13:04:40 -0700
committerJhon Honce <jhonce@redhat.com>2022-05-03 13:49:01 -0700
commit8da5f3f733273245dd4e86324ca88bf8e4ede37a (patch)
tree2c87e85d53cf01763fec61464e5a208b18de83ae /cmd/podman/system
parent1e0c50df38ff955011f7ebb83a0268f3f1cd2841 (diff)
downloadpodman-8da5f3f733273245dd4e86324ca88bf8e4ede37a.tar.gz
podman-8da5f3f733273245dd4e86324ca88bf8e4ede37a.tar.bz2
podman-8da5f3f733273245dd4e86324ca88bf8e4ede37a.zip
Add podman machine events
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'cmd/podman/system')
-rw-r--r--cmd/podman/system/connection.go15
1 files changed, 6 insertions, 9 deletions
diff --git a/cmd/podman/system/connection.go b/cmd/podman/system/connection.go
index 5164de78c..5dbe50fc9 100644
--- a/cmd/podman/system/connection.go
+++ b/cmd/podman/system/connection.go
@@ -7,18 +7,15 @@ import (
)
var (
- // Skip creating engines since this command will obtain connection information to said engines
- noOp = func(cmd *cobra.Command, args []string) error {
- return nil
- }
-
+ // ConnectionCmd skips creating engines (PersistentPreRunE/PersistentPostRunE are No-Op's) since
+ // sub-commands will obtain connection information to said engines
ConnectionCmd = &cobra.Command{
Use: "connection",
- Short: "Manage remote ssh destinations",
- Long: `Manage ssh destination information in podman configuration`,
- PersistentPreRunE: noOp,
+ Short: "Manage remote API service destinations",
+ Long: `Manage remote API service destination information in podman configuration`,
+ PersistentPreRunE: validate.NoOp,
RunE: validate.SubCommandExists,
- PersistentPostRunE: noOp,
+ PersistentPostRunE: validate.NoOp,
TraverseChildren: false,
}
)