summaryrefslogtreecommitdiff
path: root/cmd/podmanV2/healthcheck
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podmanV2/healthcheck')
-rw-r--r--cmd/podmanV2/healthcheck/healthcheck.go18
1 files changed, 5 insertions, 13 deletions
diff --git a/cmd/podmanV2/healthcheck/healthcheck.go b/cmd/podmanV2/healthcheck/healthcheck.go
index 2af398ff0..e859f9463 100644
--- a/cmd/podmanV2/healthcheck/healthcheck.go
+++ b/cmd/podmanV2/healthcheck/healthcheck.go
@@ -9,12 +9,11 @@ import (
var (
// Command: healthcheck
healthCmd = &cobra.Command{
- Use: "healthcheck",
- Short: "Manage Healthcheck",
- Long: "Manage Healthcheck",
- TraverseChildren: true,
- PersistentPreRunE: preRunE,
- RunE: registry.SubCommandExists,
+ Use: "healthcheck",
+ Short: "Manage Healthcheck",
+ Long: "Manage Healthcheck",
+ TraverseChildren: true,
+ RunE: registry.SubCommandExists,
}
)
@@ -23,11 +22,4 @@ func init() {
Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode},
Command: healthCmd,
})
- healthCmd.SetHelpTemplate(registry.HelpTemplate())
- healthCmd.SetUsageTemplate(registry.UsageTemplate())
-}
-
-func preRunE(cmd *cobra.Command, args []string) error {
- _, err := registry.NewContainerEngine(cmd, args)
- return err
}