build: set default call method name to build

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2024-06-03 10:29:40 -07:00
parent 250cd44d70
commit 89810dc998
4 changed files with 6 additions and 4 deletions

View File

@ -9,8 +9,10 @@ import (
"github.com/pkg/errors"
)
const defaultPrintFunc = "build"
func ParsePrintFunc(str string) (*controllerapi.PrintFunc, error) {
if str == "" {
if str == "" || str == defaultPrintFunc {
return nil, nil
}