Skip to content

Commit a07d42a

Browse files
committed
replace reporting.Tags with new reporting.Groups
1 parent fcacc53 commit a07d42a

File tree

17 files changed

+25
-25
lines changed

17 files changed

+25
-25
lines changed

repos/system_upgrade/cloudlinux/actors/checkpanelmemory/libraries/checkpanelmemory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ def process():
5555
reporting.Title(title),
5656
reporting.Summary(summary),
5757
reporting.Severity(reporting.Severity.HIGH),
58-
reporting.Tags([reporting.Tags.SANITY]),
58+
reporting.Groups([reporting.Groups.SANITY]),
5959
]
6060
)

repos/system_upgrade/cloudlinux/actors/checkrhnclienttools/actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def process(self):
5252
reporting.Title(title),
5353
reporting.Summary(summary),
5454
reporting.Severity(reporting.Severity.HIGH),
55-
reporting.Tags([reporting.Tags.OS_FACTS]),
55+
reporting.Groups([reporting.Groups.OS_FACTS]),
5656
reporting.Groups([reporting.Groups.INHIBITOR]),
5757
reporting.Remediation(hint=remediation),
5858
])

repos/system_upgrade/cloudlinux/actors/checkrhnversionoverride/actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ def process(self):
3434
reporting.Title(title),
3535
reporting.Summary(summary),
3636
reporting.Severity(reporting.Severity.MEDIUM),
37-
reporting.Tags([reporting.Tags.OS_FACTS]),
37+
reporting.Groups([reporting.Groups.OS_FACTS]),
3838
reporting.RelatedResource('file', '/etc/sysconfig/rhn/up2date')
3939
])

repos/system_upgrade/cloudlinux/actors/clmysqlrepositorysetup/libraries/clmysqlrepositorysetup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def clmysql_process(self, repofile_name, repofile_data):
133133
"Problematic repository: {0}".format(target_repo.repoid)
134134
),
135135
reporting.Severity(reporting.Severity.MEDIUM),
136-
reporting.Tags([reporting.Tags.REPOSITORY]),
136+
reporting.Groups([reporting.Groups.REPOSITORY]),
137137
reporting.Groups([reporting.Groups.INHIBITOR]),
138138
reporting.Remediation(
139139
hint=(
@@ -249,7 +249,7 @@ def mysql_process(self, repofile_name, repofile_data):
249249
"Problematic repository: {0}".format(target_repo.repoid)
250250
),
251251
reporting.Severity(reporting.Severity.MEDIUM),
252-
reporting.Tags([reporting.Tags.REPOSITORY]),
252+
reporting.Groups([reporting.Groups.REPOSITORY]),
253253
reporting.Groups([reporting.Groups.INHIBITOR]),
254254
reporting.Remediation(
255255
hint=(
@@ -298,7 +298,7 @@ def finalize(self):
298298
"It is recommended to make a database backup before proceeding with the upgrade."
299299
),
300300
reporting.Severity(reporting.Severity.HIGH),
301-
reporting.Tags([reporting.Tags.REPOSITORY]),
301+
reporting.Groups([reporting.Groups.REPOSITORY]),
302302
]
303303
)
304304

@@ -325,7 +325,7 @@ def finalize(self):
325325
"Detected: {0}".format(", ".join(self.mysql_types))
326326
),
327327
reporting.Severity(reporting.Severity.MEDIUM),
328-
reporting.Tags([reporting.Tags.REPOSITORY, reporting.Tags.OS_FACTS]),
328+
reporting.Groups([reporting.Groups.REPOSITORY, reporting.Groups.OS_FACTS]),
329329
]
330330
)
331331

repos/system_upgrade/cloudlinux/actors/detectcontrolpanel/actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def process(self):
5050
" Detected panel: {}.".format(panel.name)
5151
),
5252
reporting.Severity(reporting.Severity.HIGH),
53-
reporting.Tags([reporting.Tags.OS_FACTS]),
53+
reporting.Groups([reporting.Groups.OS_FACTS]),
5454
reporting.Groups([reporting.Groups.INHIBITOR]),
5555
]
5656
)

repos/system_upgrade/cloudlinux/actors/enableyumspacewalkplugin/actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ def process(self):
5252
reporting.Title(title),
5353
reporting.Summary(summary),
5454
reporting.Severity(reporting.Severity.MEDIUM),
55-
reporting.Tags([reporting.Tags.SANITY])
55+
reporting.Groups([reporting.Groups.SANITY])
5656
])

repos/system_upgrade/cloudlinux/actors/replacerpmnewconfigs/actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ def process(self):
7777
'Backed up repository files: \n{}'.format(deleted_string, replaced_string)
7878
),
7979
reporting.Severity(reporting.Severity.MEDIUM),
80-
reporting.Tags([reporting.Tags.UPGRADE_PROCESS])
80+
reporting.Groups([reporting.Groups.UPGRADE_PROCESS])
8181
])

repos/system_upgrade/cloudlinux/actors/restoremysqldata/actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ def process(self):
4141
reporting.Title(title),
4242
reporting.Summary(summary),
4343
reporting.Severity(reporting.Severity.HIGH),
44-
reporting.Tags([reporting.Tags.UPGRADE_PROCESS]),
44+
reporting.Groups([reporting.Groups.UPGRADE_PROCESS]),
4545
]
4646
)

repos/system_upgrade/cloudlinux/actors/scanrolloutrepositories/libraries/scanrolloutrepositories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def report_inhibitor(repofile_name):
3030
" repositories, which may result in some packages being downgraded or keeping their CL7 versions."
3131
),
3232
reporting.Severity(reporting.Severity.MEDIUM),
33-
reporting.Tags([reporting.Tags.OS_FACTS, reporting.Tags.UPGRADE_PROCESS, reporting.Tags.REPOSITORY]),
33+
reporting.Groups([reporting.Groups.OS_FACTS, reporting.Groups.UPGRADE_PROCESS, reporting.Groups.REPOSITORY]),
3434
]
3535
)
3636

repos/system_upgrade/cloudlinux/actors/switchclnchanneldownload/actor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def process(self):
4646
" Attempt to re-register the system with \'rhnreg_ks --force\'."
4747
),
4848
reporting.Severity(reporting.Severity.HIGH),
49-
reporting.Tags(
50-
[reporting.Tags.OS_FACTS, reporting.Tags.AUTHENTICATION]
49+
reporting.Groups(
50+
[reporting.Groups.OS_FACTS, reporting.Groups.AUTHENTICATION]
5151
),
5252
reporting.Groups([reporting.Groups.INHIBITOR]),
5353
]

0 commit comments

Comments
 (0)