From 11392ab55a13877cc7198003e7aaaa0829c7d35a Mon Sep 17 00:00:00 2001 From: Kaustav Majumder Date: Mon, 7 Oct 2024 12:10:35 +0530 Subject: [PATCH] Minor lint fixes Signed-off-by: Kaustav Majumder --- pkg/obc/provisioner.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/obc/provisioner.go b/pkg/obc/provisioner.go index a6aaebe97a..679affb649 100644 --- a/pkg/obc/provisioner.go +++ b/pkg/obc/provisioner.go @@ -577,8 +577,8 @@ func (r *BucketRequest) CreateAccount() error { return fmt.Errorf("failed to parse NSFS config %q: %w", r.OBC.Spec.AdditionalConfig["nsfsAccountConfig"], err) } // We prefer to make sure this account is only used for its appropriate NSFS operations - nsfsAccountConfig.NewBucketsPath = ""; - nsfsAccountConfig.NsfsOnly = true; + nsfsAccountConfig.NewBucketsPath = "" + nsfsAccountConfig.NsfsOnly = true // -1 is the default CLI value which we use to indicate that the UID/GID should not be set // 0 cannot be used since it is a valid GID/UID value var IDNullifier = -1 @@ -587,14 +587,14 @@ func (r *BucketRequest) CreateAccount() error { nsfsAccountConfig.GID = nil } } - + accountInfo, err := r.SysClient.NBClient.CreateAccountAPI(nb.CreateAccountParams{ - Name: r.AccountName, - Email: r.AccountName, - // defaultResource is left as-is only because AllowBucketCreate is false - DefaultResource: defaultResource, - HasLogin: false, - S3Access: true, + Name: r.AccountName, + Email: r.AccountName, + // defaultResource is left as-is only because AllowBucketCreate is false + DefaultResource: defaultResource, + HasLogin: false, + S3Access: true, // If this field is to be changed, DefaultResource above will need to be modified as well AllowBucketCreate: false, BucketClaimOwner: r.BucketName,