mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-20 04:47:34 +00:00
Merge pull request #29832 from NyCodeGHG/push-nmxtvwwnwuvm
Move cgroup check below help/completion/subcommands check
This commit is contained in:
commit
98c52cf8d5
1 changed files with 2 additions and 2 deletions
|
|
@ -266,8 +266,6 @@ func setupRemoteConnection(podmanConfig *entities.PodmanConfig) string {
|
|||
func persistentPreRunE(cmd *cobra.Command, args []string) error {
|
||||
logrus.Debugf("Called %s.PersistentPreRunE(%s)", cmd.Name(), strings.Join(os.Args, " "))
|
||||
|
||||
checkSupportedCgroups()
|
||||
|
||||
// Help, completion and commands with subcommands are special cases, no need for more setup
|
||||
// Completion cmd is used to generate the shell scripts
|
||||
if cmd.Name() == "help" || cmd.Name() == "completion" || cmd.HasSubCommands() {
|
||||
|
|
@ -275,6 +273,8 @@ func persistentPreRunE(cmd *cobra.Command, args []string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
checkSupportedCgroups()
|
||||
|
||||
podmanConfig := registry.PodmanConfig()
|
||||
|
||||
if !registry.IsRemote() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue