sysview-py 0.3.3__tar.gz → 0.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sysview-py
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Add your description here
5
5
  Author: Michael Wilson
6
6
  Author-email: Michael Wilson <mw@1wilson.org>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sysview-py"
3
- version = "0.3.3"
3
+ version = "0.3.4"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -66,6 +66,7 @@ class Host:
66
66
 
67
67
  class ReportItem:
68
68
  valid_statuses = ("OK", "WARNING", "CRITICAL", "UNKNOWN")
69
+ max_name_length = 24
69
70
 
70
71
  def __init__(
71
72
  self,
@@ -98,7 +99,10 @@ class ReportItem:
98
99
 
99
100
  @property
100
101
  def name(self):
101
- return self.command
102
+ result = self.command
103
+ if len(result) > self.max_name_length:
104
+ result = result[:self.max_name_length] + "..."
105
+ return result
102
106
 
103
107
  @property
104
108
  def url_path(self):
File without changes