Skip to content

Commit fcacc53

Browse files
committed
update cloudlinux actors codebase to recent core changes
1 parent 7e6dbfc commit fcacc53

File tree

12 files changed

+20
-36
lines changed

12 files changed

+20
-36
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def process(self):
6565
reporting.Title(title),
6666
reporting.Summary(summary),
6767
reporting.Severity(reporting.Severity.HIGH),
68-
reporting.Tags([reporting.Tags.OS_FACTS]),
69-
reporting.Flags([reporting.Flags.INHIBITOR]),
68+
reporting.Groups([reporting.Groups.OS_FACTS]),
69+
reporting.Groups([reporting.Groups.INHIBITOR]),
7070
reporting.Remediation(hint=remediation),
7171
])
7272
else:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ def process(self):
5353
reporting.Summary(summary),
5454
reporting.Severity(reporting.Severity.HIGH),
5555
reporting.Tags([reporting.Tags.OS_FACTS]),
56-
reporting.Flags([reporting.Flags.INHIBITOR]),
56+
reporting.Groups([reporting.Groups.INHIBITOR]),
5757
reporting.Remediation(hint=remediation),
5858
])

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def clmysql_process(self, repofile_name, repofile_data):
134134
),
135135
reporting.Severity(reporting.Severity.MEDIUM),
136136
reporting.Tags([reporting.Tags.REPOSITORY]),
137-
reporting.Flags([reporting.Flags.INHIBITOR]),
137+
reporting.Groups([reporting.Groups.INHIBITOR]),
138138
reporting.Remediation(
139139
hint=(
140140
"Upgrade to a more recent MySQL version, or"
@@ -250,7 +250,7 @@ def mysql_process(self, repofile_name, repofile_data):
250250
),
251251
reporting.Severity(reporting.Severity.MEDIUM),
252252
reporting.Tags([reporting.Tags.REPOSITORY]),
253-
reporting.Flags([reporting.Flags.INHIBITOR]),
253+
reporting.Groups([reporting.Groups.INHIBITOR]),
254254
reporting.Remediation(
255255
hint=(
256256
"Upgrade to a more recent MySQL version, "

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ def process(self):
5151
),
5252
reporting.Severity(reporting.Severity.HIGH),
5353
reporting.Tags([reporting.Tags.OS_FACTS]),
54-
reporting.Flags([reporting.Flags.INHIBITOR]),
54+
reporting.Groups([reporting.Groups.INHIBITOR]),
5555
]
5656
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def process(self):
4949
reporting.Tags(
5050
[reporting.Tags.OS_FACTS, reporting.Tags.AUTHENTICATION]
5151
),
52-
reporting.Flags([reporting.Flags.INHIBITOR]),
52+
reporting.Groups([reporting.Groups.INHIBITOR]),
5353
]
5454
)
5555
except OSError as e:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def process(self):
4141
reporting.Tags(
4242
[reporting.Tags.OS_FACTS, reporting.Tags.AUTHENTICATION]
4343
),
44-
reporting.Flags([reporting.Flags.INHIBITOR]),
44+
reporting.Groups([reporting.Groups.INHIBITOR]),
4545
]
4646
)
4747
except OSError as e:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def process(self):
4545
reporting.Tags(
4646
[reporting.Tags.OS_FACTS, reporting.Tags.NETWORK]
4747
),
48-
reporting.Flags([reporting.Flags.INHIBITOR]),
48+
reporting.Groups([reporting.Groups.INHIBITOR]),
4949
]
5050
)
5151
except OSError as e:

repos/system_upgrade/common/actors/dummyinhibitor/actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ def process(self):
2525
),
2626
reporting.Severity(reporting.Severity.HIGH),
2727
reporting.Tags([reporting.Tags.SANITY]),
28-
reporting.Flags([reporting.Flags.INHIBITOR]),
28+
reporting.Groups([reporting.Groups.INHIBITOR]),
2929
])

repos/system_upgrade/common/actors/kernel/checkinstalledkernels/libraries/checkinstalledkernels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def process():
9393
# LVE kernels can be installed over newer kernels and be older
9494
# than the most current avalable ones - that's not an inhibitor, it's expected
9595
# They're marked with 'lve' in the release string
96-
lve_kernel = "lve" in current_evr[2]
96+
lve_kernel = "lve" in current_kernel_evr[2]
9797

98-
if current_evr != newest_evr and not lve_kernel:
98+
if current_kernel_evr != newest_kernel_evr and not lve_kernel:
9999
title = 'Newest installed kernel not in use'
100100
summary = ('To ensure a stable upgrade, the machine needs to be'
101101
' booted into the latest installed kernel.')

repos/system_upgrade/el7toel8/actors/checkfirstpartitionoffset/libraries/check_first_partition_offset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ def check_first_partition_offset():
5757
reporting.Remediation(hint=hint.format(SAFE_OFFSET_BYTES // 1024)),
5858
reporting.Severity(reporting.Severity.HIGH),
5959
reporting.Tags([reporting.Tags.BOOT]),
60-
reporting.Flags([reporting.Flags.INHIBITOR]),
60+
reporting.Groups([reporting.Groups.INHIBITOR]),
6161
])

0 commit comments

Comments
 (0)