Skip to content

Commit ce3d97f

Browse files
Qian Chenravinitp
authored andcommitted
remove decode logic for inline artifact
1 parent 7624fc5 commit ce3d97f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

internal/service/devops/devops_deploy_artifact_resource.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package devops
55

66
import (
77
"context"
8-
b64 "encoding/base64"
98
"fmt"
109
"log"
1110
"strings"
@@ -733,7 +732,7 @@ func DeployArtifactSourceToMap(obj *oci_devops.DeployArtifactSource) map[string]
733732

734733
if v.Base64EncodedContent != nil {
735734
contentReader := v.Base64EncodedContent
736-
result["base64encoded_content"] = DevopsDeployArtifactBase64Decode(contentReader)
735+
result["base64encoded_content"] = string(contentReader)
737736
}
738737
case oci_devops.OcirDeployArtifactSource:
739738
result["deploy_artifact_source_type"] = "OCIR"
@@ -881,8 +880,3 @@ func VerificationKeySourceToMap(obj *oci_devops.VerificationKeySource) map[strin
881880

882881
return result
883882
}
884-
885-
func DevopsDeployArtifactBase64Decode(content []byte) string {
886-
text := b64.StdEncoding.EncodeToString(content)
887-
return text
888-
}

0 commit comments

Comments
 (0)