Skip to content

Commit

Permalink
Merge pull request #691 from atlassian/msg/none-remove-base-path
Browse files Browse the repository at this point in the history
Removing base path
  • Loading branch information
MovieStoreGuy authored May 28, 2024
2 parents 9384f2b + 746a2f7 commit 2b02beb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/lambda/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package lambda
import (
"errors"
"os"
"path"

"github.com/spf13/pflag"
"go.uber.org/multierr"
Expand Down Expand Up @@ -39,7 +38,7 @@ type Options struct {
func NewOptionsFromEnvironment() Options {
return Options{
RuntimeAPI: os.Getenv(api.EnvLambdaAPIHostname),
ExecutableName: path.Base(os.Args[0]),
ExecutableName: os.Args[0],
EnableManualFlush: false,
TelemetryAddr: "http://sandbox:8083",
}
Expand Down
3 changes: 1 addition & 2 deletions pkg/lambda/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package lambda

import (
"os"
"path"
"testing"

"github.com/spf13/pflag"
Expand All @@ -16,7 +15,7 @@ func TestDefaultOptions(t *testing.T) {

expected := Options{
RuntimeAPI: "example",
ExecutableName: path.Base(os.Args[0]),
ExecutableName: os.Args[0],
EnableManualFlush: false,
TelemetryAddr: "http://sandbox:8083",
}
Expand Down

0 comments on commit 2b02beb

Please sign in to comment.