We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b810f commit c6824caCopy full SHA for c6824ca
provisionersdk/provisionertags.go
@@ -18,9 +18,10 @@ const (
18
// NOTE: "owner" must NEVER be nil. Otherwise it will end up being
19
// duplicated in the database, as idx_provisioner_daemons_name_owner_key
20
// is a partial unique index that includes a JSON field.
21
-func MutateTags(userID uuid.UUID, tags map[string]string) map[string]string {
22
- if tags == nil {
23
- tags = map[string]string{}
+func MutateTags(userID uuid.UUID, provided map[string]string) map[string]string {
+ tags := map[string]string{}
+ for k, v := range provided {
24
+ tags[k] = v
25
}
26
_, ok := tags[TagScope]
27
if !ok {
0 commit comments