Skip to content

Commit 6af64e7

Browse files
authored
Merge pull request #3112 from olehermanse/lint
Fixed inconsistencies found by cfengine lint
2 parents 59c93de + 1eb0932 commit 6af64e7

8 files changed

Lines changed: 20 additions & 23 deletions

File tree

cfbs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Masterfiles",
2+
"name": "masterfiles",
33
"description": "Official CFEngine Masterfiles Policy Framework (MPF)",
44
"type": "module",
55
"provides": {

cfe_internal/enterprise/CFE_hub_specific.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ bundle agent log_cfengine_enterprise_license_utilization
607607

608608
}
609609

610-
bundle agent cfe_internal_enterprise_HA_classes
610+
bundle agent cfe_internal_enterprise_ha_classes
611611
{
612612
classes:
613613
# NOTE The `hub_active` class is a hard class defined by the ha_plugin in
@@ -645,7 +645,7 @@ bundle agent cfe_internal_enterprise_maintenance
645645

646646
enterprise_edition::
647647
"HA classes"
648-
usebundle => "cfe_internal_enterprise_HA_classes",
648+
usebundle => "cfe_internal_enterprise_ha_classes",
649649
comment => "Set the HA-related classes for the maintenance bundles";
650650

651651
"Enterprise Maintenance"

cfe_internal/enterprise/federation/federation.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,9 +816,9 @@ bundle agent ensure_feeders
816816
arglist => {
817817
"cfdb",
818818
@if minimum_version(3.24)
819-
"select ensure_feeders($(feeders_arg));"
819+
"select ensure_feeders($(feeders_arg));",
820820
@else
821-
`"select ensure_feeders($(feeders_arg));"`
821+
`"select ensure_feeders($(feeders_arg));"`,
822822
@endif
823823
},
824824
classes => psql_wrapper_exit_codes,
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
2-
"192.168.100.10":
3-
{
4-
"sha": "PLACE KEY HERE",
5-
"internal_ip": "192.168.100.10",
6-
"is_in_cluster" : true,
7-
},
8-
"192.168.100.11":
9-
{
10-
"sha": "PLACE KEY HERE",
11-
"internal_ip": "192.168.100.11",
12-
"is_in_cluster" : true,
13-
}
2+
"192.168.100.10": {
3+
"sha": "PLACE KEY HERE",
4+
"internal_ip": "192.168.100.10",
5+
"is_in_cluster": true
6+
},
7+
"192.168.100.11": {
8+
"sha": "PLACE KEY HERE",
9+
"internal_ip": "192.168.100.11",
10+
"is_in_cluster": true
11+
}
1412
}
15-

cfe_internal/recommendations.cf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
bundle agent MPF_class_recommendations
1+
bundle agent mpf_class_recommendations
22
{
33
meta:
44
(policy_server|am_policy_hub).enterprise_edition::

inventory/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ R: inventory_lsb: OS = Ubuntu, codename = trusty, release = 14.04, flavor = Ubun
183183

184184
* lives in: `any.cf`
185185
* runs `inventory_control.lldpctl_exec` through a Perl filter
186-
* provides variables: `cfe_autorun_inventory_LLDP.K` for each `K` returned by the LLDB executable
186+
* provides variables: `cfe_autorun_inventory_lldp.K` for each `K` returned by the LLDB executable
187187

188188
## mtab
189189

inventory/any.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ bundle agent inventory_autorun
3737
{
3838
methods:
3939
!disable_inventory_LLDP::
40-
"LLDP" usebundle => cfe_autorun_inventory_LLDP(),
40+
"LLDP" usebundle => cfe_autorun_inventory_lldp(),
4141
handle => "cfe_internal_autorun_inventory_LLDP";
4242

4343
!disable_inventory_package_refresh::
@@ -1066,7 +1066,7 @@ bundle agent cfe_autorun_inventory_dmidecode
10661066
"DEBUG $(this.bundle): Obtained Physical memory (MB) = '$(total_physical_memory_MB)'";
10671067
}
10681068

1069-
bundle agent cfe_autorun_inventory_LLDP
1069+
bundle agent cfe_autorun_inventory_lldp
10701070
# @brief Do LLDP-based inventory
10711071
#
10721072
# This agent bundle runs lldpctl to discover information. See

tests/acceptance/lib/files/append_user_field.cf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bundle agent check
4848

4949
"fail"
5050
usebundle => dcs_fail( $(this.promise_filename) ),
51-
ifvarclass => "_fail";
51+
if => "_fail";
5252

5353
pass::
5454
"pass"

0 commit comments

Comments
 (0)