diff --git a/bossman/plugins/akamai/property.py b/bossman/plugins/akamai/property.py index dd38c0d..e9ce6a2 100644 --- a/bossman/plugins/akamai/property.py +++ b/bossman/plugins/akamai/property.py @@ -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