mirror of https://github.com/knative/func.git
fix-of-a-fix (#2994)
This commit is contained in:
parent
f6e6021693
commit
208801aecb
|
|
@ -217,7 +217,14 @@ func (b *Builder) Build(ctx context.Context, f fn.Function, platforms []fn.Platf
|
||||||
|
|
||||||
if f.Runtime == "python" {
|
if f.Runtime == "python" {
|
||||||
if fi, _ := os.Lstat(filepath.Join(f.Root, "Procfile")); fi == nil {
|
if fi, _ := os.Lstat(filepath.Join(f.Root, "Procfile")); fi == nil {
|
||||||
cli = pyScaffoldInjector{cli, f.Invoke}
|
// HACK (of a hack): need to get the right invocation signature
|
||||||
|
// the standard scaffolding does this in toSignature() func.
|
||||||
|
// we know we have python here.
|
||||||
|
invoke := f.Invoke
|
||||||
|
if invoke == "" {
|
||||||
|
invoke = "http"
|
||||||
|
}
|
||||||
|
cli = pyScaffoldInjector{cli, invoke}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue