From c07ae2b4cf0bd03c6991990bc0635a594e319163 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Thu, 19 Sep 2024 15:30:30 +0800 Subject: [PATCH] fix: remove duplicate conditions Signed-off-by: cuishuang --- pkg/parse/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/parse/parse.go b/pkg/parse/parse.go index 0b5d92892db..c55133c5525 100644 --- a/pkg/parse/parse.go +++ b/pkg/parse/parse.go @@ -757,7 +757,7 @@ func GetConfidentialWorkloadOptions(arg string) (define.ConfidentialWorkloadOpti if options.AttestationURL == option { options.AttestationURL = strings.TrimPrefix(option, "attestation-url=") } - case strings.HasPrefix(option, "passphrase="), strings.HasPrefix(option, "passphrase="): + case strings.HasPrefix(option, "passphrase="): options.Convert = true options.DiskEncryptionPassphrase = strings.TrimPrefix(option, "passphrase=") case strings.HasPrefix(option, "workload_id="), strings.HasPrefix(option, "workload-id="):