@@ -127,7 +127,7 @@ func (c *Config) Dump() (string, error) {
127
127
return string (d ), nil
128
128
}
129
129
130
- func (c * Config ) validate (isVenafi bool ) error {
130
+ func (c * Config ) validate (isVenafiCloudMode bool ) error {
131
131
var result * multierror.Error
132
132
133
133
// configured for Venafi Cloud
@@ -139,7 +139,7 @@ func (c *Config) validate(isVenafi bool) error {
139
139
if _ , err := url .Parse (c .VenafiCloud .UploadPath ); err != nil {
140
140
result = multierror .Append (result , fmt .Errorf ("upload_path is not a valid URL" ))
141
141
}
142
- } else if ! isVenafi {
142
+ } else if ! isVenafiCloudMode {
143
143
if c .OrganizationID == "" {
144
144
result = multierror .Append (result , fmt .Errorf ("organization_id is required" ))
145
145
}
@@ -167,7 +167,7 @@ func (c *Config) validate(isVenafi bool) error {
167
167
}
168
168
169
169
// ParseConfig reads config into a struct used to configure running agents
170
- func ParseConfig (data []byte , isVenafi bool ) (Config , error ) {
170
+ func ParseConfig (data []byte , isVenafiCloudMode bool ) (Config , error ) {
171
171
var config Config
172
172
173
173
err := yaml .Unmarshal (data , & config )
@@ -186,7 +186,7 @@ func ParseConfig(data []byte, isVenafi bool) (Config, error) {
186
186
config .Endpoint .Protocol = "http"
187
187
}
188
188
189
- err = config .validate (isVenafi )
189
+ err = config .validate (isVenafiCloudMode )
190
190
if err != nil {
191
191
return config , err
192
192
}
0 commit comments