diff --git a/helpers.go b/helpers.go index 172e7fa..8aa790a 100644 --- a/helpers.go +++ b/helpers.go @@ -97,6 +97,15 @@ func getBoshClient(ctx compContext) (*client, error) { ret.Password = env.Password ret.RefreshToken = env.RefreshToken + //--client and --client-secret flags override config + if client, found := ctx.Flags["--client"]; found { + ret.Username = client[0] + } + + if clientSecret, found := ctx.Flags["--client-secret"]; found { + ret.Password = clientSecret[0] + } + boshClient = ret return boshClient, nil