Skip to content

Commit ddfb06a

Browse files
viveksynghalexellis
authored andcommitted
Remove command to honor OPENFAAS_URL env variable
This change is to fix issue with faas-cli remove command which ignores OPENFAAS_URL env variable even it was set. Issue: openfaas#366 Signed-off-by: Vivek Singh <[email protected]>
1 parent c4f266b commit ddfb06a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/remove.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func runDelete(cmd *cobra.Command, args []string) error {
7373

7474
functionName = args[0]
7575
fmt.Printf("Deleting: %s.\n", functionName)
76-
proxy.DeleteFunction(gateway, functionName)
76+
proxy.DeleteFunction(gatewayAddress, functionName)
7777
}
7878

7979
return nil

0 commit comments

Comments
 (0)