Skip to content

Commit

Permalink
Update retention.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmorin authored Apr 2, 2021
1 parent 5cefb41 commit 457bd74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/retention.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ func expandRententionRules(d *schema.ResourceData) []models.Rules {
tag.Decoration = "matches"
tag.Pattern = i["tag_matching"].(string)
tag.Extras = "{\"untagged\":" + strconv.FormatBool(i["untagged_artifacts"].(bool)) + "}"
log.Printf("[DEBUG] %s\n ", "tag matching")
}

if i["tag_excluding"].(string) != "" {
tag.Decoration = "excludes"
tag.Pattern = i["tag_matching"].(string)
tag.Pattern = i["tag_excluding"].(string)
tag.Extras = "{\"untagged\":" + strconv.FormatBool(i["untagged_artifacts"].(bool)) + "}"
log.Printf("[DEBUG] %s\n ", "tag excluding")
}

scopeSelectorsRepository := models.ScopeSelectors{
Expand Down

0 comments on commit 457bd74

Please sign in to comment.