Skip to content

Commit

Permalink
messaging: summary is missing propery decorator
Browse files Browse the repository at this point in the history
Should fix #3493
  • Loading branch information
nikromen authored and praiskup committed Nov 28, 2024
1 parent e123e4e commit 526473b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions messaging/copr_messaging/private/hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(self, *args, **kwargs):
"""
Base class that all Copr messages should inherit from.
"""
@property
def summary(self):
"""A one-line, human-readable representation of this message."""
return "Unspecified Copr message"
Expand Down
2 changes: 2 additions & 0 deletions messaging/copr_messaging/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def status(self):
"""
raise NotImplementedError

@property
def summary(self):
"""A one-line, human-readable representation of this message."""
return '{0}: chroot "{1}" ended as "{2}".'.format(
Expand All @@ -64,6 +65,7 @@ class BuildChrootStarted(_BuildChrootMessage):
Representation of a message sent by Copr build system right before some Copr
worker starts working on a build in a particular mock chroot.
"""
@property
def summary(self):
"""A one-line, human-readable representation of this message."""
return '{0}: chroot "{1}" started.'.format(
Expand Down

0 comments on commit 526473b

Please sign in to comment.