Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit a1b6f66

Browse files
authored
Merge pull request #250 from jan-cerny/role
Fix terminology
2 parents b54bade + 170cf53 commit a1b6f66

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ endif()
5050
option(SCAP_WORKBENCH_LOCAL_SCAN_ENABLED "If enabled, scanning of local machine is possible from workbench. Else the option is disabled in the GUI." TRUE)
5151

5252
if(${OPENSCAP_VERSION_MAJOR} LESS 2 AND ${OPENSCAP_VERSION_MINOR} LESS 3 AND ${OPENSCAP_VERSION_PATCH} LESS 16) # i.e. oscap<1.2.16
53-
message(FATAL_ERROR "Library-powered generation of result-based remediation roles is supported only if you have oscap>=1.2.16, whereas you have oscap==${OPENSCAP_VERSION}")
53+
message(FATAL_ERROR "Library-powered generation of result-based remediations is supported only if you have oscap>=1.2.16, whereas you have oscap==${OPENSCAP_VERSION}")
5454
endif()
5555

5656
find_program(NICE_EXECUTABLE NAMES nice) # fully optional, local scan still available when missing

doc/user_manual.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,14 @@ to remediate each of them.
380380

381381
The rules that were remediated will show up as *fixed* in the rule result list.
382382

383-
=== Export remediation role for the selected profile
383+
=== Export remediation for the selected profile
384384

385-
After you select a profile, you can export a remediation role to a file.
386-
Bash scripts, Ansible playbooks and Puppet manifests are the formats supported.
385+
After you select a profile, you can export a remediation to a file.
386+
Bash scripts, Ansible Playbooks and Puppet manifests are the formats supported.
387387
The output file will contain all remediations for rules selected by the profile
388388
that are available.
389-
As the content of the remediation role solely depends on the profile,
390-
it is referred to as profile-based remediation role.
389+
As the content of the remediation solely depends on the profile,
390+
it is referred to as profile-based remediation.
391391

392392
The possibility to save remediations to a file puts you in charge -
393393
you can examine it, edit it and decide what remediations to apply.
@@ -443,7 +443,7 @@ which will clear all results.
443443
=== View and Analyze Results
444444

445445
After evaluation finishes, you should see three new buttons:
446-
*Clear*, *Save Results*, *Generate remediation role* and *Show Report*.
446+
*Clear*, *Save Results*, *Generate remediation* and *Show Report*.
447447

448448
****
449449
Pressing Clear will *permanently* destroy scan results! This action cannot
@@ -489,13 +489,13 @@ However, ARF files are not as well supported by SCAP toolchains as XCCDF result
489489
XCCDF result files can be generated from ARF files, this operation is called *ARF splitting*.
490490
****
491491

492-
Opening the *Generate remediation role* pop-up menu will let you to save
492+
Opening the *Generate remediation* pop-up menu will let you to save
493493
result-based remediations to a file.
494494
The output file will contain all available remediations for rules
495495
that have failed the scan, so it should fit your needs better
496496
than profile-based remediations.
497497
As the saved content is based on actual scan results,
498-
it is referred to as results-based remediation role.
498+
it is referred to as results-based remediation.
499499

500500
If you scan with a customized profile, you may encounter an error -
501501
see <<known-issues>> for a workaround.

src/RemediationRoleSaver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ extern "C"
4040

4141

4242

43-
const QString bashSaveMessage = QObject::tr("Save remediation role as a bash script");
43+
const QString bashSaveMessage = QObject::tr("Save remediation as a bash script");
4444
const QString bashFiletypeExtension = "sh";
4545
const QString bashFiletypeTemplate = QObject::tr("bash script (*.%1)");
4646
const QString bashFixTemplate = QString("sh");
4747

48-
const QString ansibleSaveMessage = QObject::tr("Save remediation role as an ansible playbook");
48+
const QString ansibleSaveMessage = QObject::tr("Save remediation as an ansible playbook");
4949
const QString ansibleFiletypeExtension = "yml";
5050
const QString ansibleFiletypeTemplate = QObject::tr("ansible playbook (*.%1)");
5151
const QString ansibleFixType = QString("ansible");
5252

53-
const QString puppetSaveMessage = QObject::tr("Save remediation role as a puppet manifest");
53+
const QString puppetSaveMessage = QObject::tr("Save remediation as a puppet manifest");
5454
const QString puppetFiletypeExtension = "pp";
5555
const QString puppetFiletypeTemplate = QObject::tr("puppet manifest (*.%1)");
5656
const QString puppetFixType = QString("puppet");
@@ -108,7 +108,7 @@ void RemediationSaverBase::saveFileOK(const QString& filename)
108108
void RemediationSaverBase::saveFileError(const QString& filename, const QString& errorMsg)
109109
{
110110
removeFileWhenEmpty(filename);
111-
const QString completeErrorMessage = QObject::tr("Error generating remediation role '%2': %1").arg(errorMsg, filename);
111+
const QString completeErrorMessage = QObject::tr("Error generating remediation '%2': %1").arg(errorMsg, filename);
112112
mDiagnostics->errorMessage(completeErrorMessage);
113113
}
114114

ui/MainWindow.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,10 @@
360360
<item>
361361
<widget class="QPushButton" name="genRemediationButton">
362362
<property name="toolTip">
363-
<string>Generate remediation role that contains fix for every single rule the in the profile. Note that not every rule implements a fix.</string>
363+
<string>Generate remediation that contains fix for every single rule the in the profile. Note that not every rule implements a fix.</string>
364364
</property>
365365
<property name="text">
366-
<string>Generate remediation role</string>
366+
<string>Generate remediation</string>
367367
</property>
368368
</widget>
369369
</item>

ui/ResultViewer.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
</font>
5353
</property>
5454
<property name="toolTip">
55-
<string>Generate remediation role that contains fix for every rule that failed in the scan. However, note that not every rule implements a fix.</string>
55+
<string>Generate remediation that contains fix for every rule that failed in the scan. However, note that not every rule implements a fix.</string>
5656
</property>
5757
<property name="text">
58-
<string>Generate remediation role</string>
58+
<string>Generate remediation</string>
5959
</property>
6060
</widget>
6161
</item>

0 commit comments

Comments
 (0)