Skip to content

Commit 317e665

Browse files
committed
Replaced ifvarclass with if in templates
Used find and replace in editor, reviewed each instance to correct any indentation / alignment issues. Changelog: None Ticket: CFE-3472 Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
1 parent 8cd99d7 commit 317e665

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

controls/update_def.cf.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ bundle common update_def
3333

3434
"augments_inputs"
3535
slist => {},
36-
ifvarclass => not( isvariable( "def.update_inputs" ) );
36+
if => not( isvariable( "def.update_inputs" ) );
3737

3838
"augments_inputs"
3939
slist => { @(def.update_inputs) },
40-
ifvarclass => isvariable( "def.update_inputs" );
40+
if => isvariable( "def.update_inputs" );
4141

4242
# Default the input name patterns, if we don't find it defined in def
4343
# (from the augments_file).
@@ -48,9 +48,9 @@ bundle common update_def
4848
comment => "Filename patterns to match when updating the policy
4949
(see update/update_policy.cf)",
5050
handle => "common_def_vars_input_name_patterns_policy_default",
51-
ifvarclass => and(and(not(isvariable("override_data_acl")),
52-
not(isvariable("input_name_patterns"))),
53-
not(isvariable("def.input_name_patterns"))),
51+
if => and(and(not(isvariable("override_data_acl")),
52+
not(isvariable("input_name_patterns"))),
53+
not(isvariable("def.input_name_patterns"))),
5454
meta => { "defvar" };
5555

5656
# define based on data in def (which comes from augments file), if
@@ -60,7 +60,7 @@ bundle common update_def
6060
comment => "Filename patterns to match when updating the policy
6161
(see update/update_policy.cf)",
6262
handle => "common_def_vars_input_name_patterns",
63-
ifvarclass => and( isvariable("def.input_name_patterns"),
63+
if => and( isvariable("def.input_name_patterns"),
6464
not(isvariable("input_name_patterns"))),
6565
meta => { "defvar" };
6666

promises.cf.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,14 @@ bundle common services_autorun
345345
reports:
346346
DEBUG|DEBUG_services_autorun::
347347
"DEBUG $(this.bundle): Services Autorun Disabled"
348-
ifvarclass => "!services_autorun";
348+
if => "!services_autorun";
349349

350350
"DEBUG $(this.bundle): Services Autorun Enabled"
351-
ifvarclass => "services_autorun";
351+
if => "services_autorun";
352352

353353
"DEBUG $(this.bundle): adding input='$(inputs)'"
354-
ifvarclass => isvariable("inputs");
354+
if => isvariable("inputs");
355355

356356
"DEBUG $(this.bundle): adding input='$(found_inputs)'"
357-
ifvarclass => isvariable("found_inputs");
357+
if => isvariable("found_inputs");
358358
}

standalone_self_upgrade.cf.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ bundle agent cfengine_software_version_packages1
342342
comment => "Create a backup script for cf-upgrade",
343343
handle => "cfe_internal_update_bins_files_backup_script",
344344
create => "true",
345-
ifvarclass => "!windows",
345+
if => "!windows",
346346
edit_defaults => u_empty_no_backup,
347347
edit_line => u_backup_script,
348348
perms => u_m("0755");
@@ -351,7 +351,7 @@ bundle agent cfengine_software_version_packages1
351351
comment => "Create an install script for cf-upgrade",
352352
handle => "cfe_internal_update_bins_files_install_script",
353353
create => "true",
354-
ifvarclass => "!windows",
354+
if => "!windows",
355355
edit_defaults => u_empty_no_backup,
356356
edit_line => u_install_script,
357357
perms => u_m("0755");
@@ -363,7 +363,7 @@ bundle agent cfengine_software_version_packages1
363363
edit_defaults => u_empty_no_backup,
364364
edit_line => u_admin_file,
365365
perms => u_m("0644"),
366-
ifvarclass => "solarisx86|solaris";
366+
if => "solarisx86|solaris";
367367

368368
packages:
369369
# Only non policy hubs running are allowed to self upgrade

0 commit comments

Comments
 (0)