File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 4
4
"bytes"
5
5
"context"
6
6
"crypto/sha256"
7
- "encoding/hex"
8
7
"encoding/json"
9
8
"errors"
10
9
"fmt"
@@ -700,18 +699,17 @@ func ConvertWorkspaceProxy(proxy database.WorkspaceProxy) WorkspaceProxy {
700
699
}
701
700
702
701
func ConvertExternalProvisioner (id uuid.UUID , tags map [string ]string , provisioners []database.ProvisionerType ) ExternalProvisioner {
703
- hashedTags := make (map [string ]string , len (tags ))
702
+ tagsCopy := make (map [string ]string , len (tags ))
704
703
for k , v := range tags {
705
- hash := sha256 .Sum256 ([]byte (v ))
706
- hashedTags [k ] = hex .EncodeToString (hash [:])
704
+ tagsCopy [k ] = v
707
705
}
708
706
strProvisioners := make ([]string , 0 , len (provisioners ))
709
707
for _ , prov := range provisioners {
710
708
strProvisioners = append (strProvisioners , string (prov ))
711
709
}
712
710
return ExternalProvisioner {
713
711
ID : id .String (),
714
- Tags : hashedTags ,
712
+ Tags : tagsCopy ,
715
713
Provisioners : strProvisioners ,
716
714
StartedAt : time .Now (),
717
715
}
You can’t perform that action at this time.
0 commit comments