Skip to content

Commit

Permalink
ncm-freeipa: Remove lint from pan templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Nov 28, 2024
1 parent 8c901b8 commit 2033505
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ncm-freeipa/src/main/pan/quattor/aii/freeipa/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ example usage:
}
function validate_aii_freeipa_hooks = {
if (ARGC != 1) {
error(format("%s: requires only one argument", FUNCTION));
error("%s: requires only one argument", FUNCTION);
};

if (! exists(SELF[ARGV[0]])) {
error(format("%s: no %s hook found.", FUNCTION, ARGV[0]));
error("%s: no %s hook found.", FUNCTION, ARGV[0]);
};


Expand All @@ -27,7 +27,7 @@ function validate_aii_freeipa_hooks = {
foreach (i; v; hook) {
if (exists(v['module']) && v['module'] == FREEIPA_AII_MODULE_NAME) {
if (found) {
error(format("%s: second freeipa %s hook found", FUNCTION, name));
error("%s: second freeipa %s hook found", FUNCTION, name);
} else {
found = true;
ind = i;
Expand All @@ -36,7 +36,7 @@ function validate_aii_freeipa_hooks = {
};

if (! found) {
error(format("%s: no freeipa %s hook found with module %s", FUNCTION, ARGV[0], FREEIPA_AII_MODULE_NAME));
error("%s: no freeipa %s hook found with module %s", FUNCTION, ARGV[0], FREEIPA_AII_MODULE_NAME);
};

true;
Expand Down

0 comments on commit 2033505

Please sign in to comment.