Skip to content

Commit

Permalink
fix(property): limit version notes to <1000 characters in keeping wit…
Browse files Browse the repository at this point in the history
…h PAPI limits
  • Loading branch information
ynohat committed Jun 26, 2024
1 parent 8b6fc1a commit 5cf0387
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bossman/plugins/akamai/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,9 @@ def apply_change(self, resource: PropertyResource, revision: Revision, previous_

# before changing anything in PAPI, check that the json files are valid
rules_json = self.validate_rules(resource, rules)
# Update the rule tree with metadata from the revision commit.
comments = GenericVersionComments.from_revision(revision)
# Update the rule tree with metadata from the revision commit. PAPI supports less than
# 1000 characters here.
comments = GenericVersionComments.from_revision(revision, truncate_to=999)
rules_json.update(comments=str(comments))

hostnames_json = None
Expand Down

0 comments on commit 5cf0387

Please sign in to comment.