File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ type S3FSArgs struct {
17
17
CurlDebug string `json:"curldbg,omitempty"`
18
18
DebugLevel string `json:"dbglevel,omitempty"`
19
19
DefaultACL string `json:"default_acl,omitempty"`
20
+ DisableNoobjCache string `json:"disable_noobj_cache,omitempty"`
20
21
EndPoint string `json:"endpoint,omitempty"`
21
22
GID string `json:"gid,omitempty"`
22
23
IBMIamAuth string `json:"ibm_iam_auth,omitempty"`
@@ -124,6 +125,14 @@ func (args S3FSArgs) Validate(targetPath string) error {
124
125
return fmt .Errorf ("invalid value for 'curldbg' param. Should be either 'body' or 'normal': %v" , args .CurlDebug )
125
126
}
126
127
128
+ // Check if value of disable_noobj_cache is boolean "true" or "false"
129
+ if args .DisableNoobjCache != "" {
130
+ if isBool := isBoolString (args .DisableNoobjCache ); ! isBool {
131
+ logger .Error ("cannot convert value of disable_noobj_cache into boolean" , zap .Any ("disable_noobj_cache" , args .DisableNoobjCache ))
132
+ return fmt .Errorf ("cannot convert value of disable_noobj_cache into boolean: %v" , args .DisableNoobjCache )
133
+ }
134
+ }
135
+
127
136
// Check if value of gid parameter can be converted to integer
128
137
if args .GID != "" {
129
138
_ , err := strconv .Atoi (args .GID )
You can’t perform that action at this time.
0 commit comments