Skip to content

Commit

Permalink
17164 FIX Fix "Downtime active or pending" painter
Browse files Browse the repository at this point in the history
SUP-19583

Change-Id: If74d1b55928820345135d2bf0dd16732324364e7
  • Loading branch information
makanakoeln committed Aug 15, 2024
1 parent 0a56593 commit f9b4c10
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .werks/17164.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[//]: # (werk v2)
# Fix "Downtime active or pending" painter

key | value
---------- | ---
date | 2024-08-14T12:13:31+00:00
version | 2.3.0p13
class | fix
edition | cre
component | multisite
level | 1
compatible | yes

The painter showed always "pending".
4 changes: 2 additions & 2 deletions cmk/gui/painter/v0/painters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4176,10 +4176,10 @@ def short_title(self, cell: Cell) -> str:

@property
def columns(self) -> Sequence[ColumnName]:
return ["downtime_type"]
return ["is_pending"]

def render(self, row: Row, cell: Cell) -> CellSpec:
return (None, row["downtime_type"] == 0 and _("active") or _("pending"))
return (None, row["is_pending"] == 0 and _("active") or _("pending"))


class PainterDowntimeEntryTime(Painter):
Expand Down

0 comments on commit f9b4c10

Please sign in to comment.