Skip to content

Commit 66d2c26

Browse files
committed
allow to customize user-agent
1 parent 8606154 commit 66d2c26

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ type Config struct {
2121
SkipSslValidation bool
2222
// Show debug trace
2323
Debug bool
24+
// Binary name that will be used as user-agent
25+
BinName string
2426
}

session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func NewSession(c Config) (s *Session, err error) {
5959
ENV: configv3.EnvOverride{
6060
CFUsername: c.User,
6161
CFPassword: c.Password,
62-
BinaryName: "terraform-provider",
62+
BinaryName: c.BinName,
6363
},
6464
}
6565
s.configStore = config

0 commit comments

Comments
 (0)