Skip to content

Commit

Permalink
Merge pull request #9400 from ggbecker/fix-comments-in-sysctl-template
Browse files Browse the repository at this point in the history
Fix jinja comment variable definition in sysctl OVAL template
  • Loading branch information
vojtapolasek committed Aug 25, 2022
2 parents 2c90028 + 7ed3069 commit faec68f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shared/templates/sysctl/oval.template
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{%- if SYSCTLVAL == "" %}}
{{%- set COMMENT_VALUE="the appropriate value" %}}
{{%- elif SYSCTLVAL is sequence %}}
{{%- set COMMENT_VALUE = SYSCTLVAL | join(" or " ) %}}
{{%- else %}}
{{%- elif SYSCTLVAL is string %}}
{{%- set COMMENT_VALUE=SYSCTLVAL %}}
{{%- else %}}
{{%- set COMMENT_VALUE = SYSCTLVAL | join(" or " ) %}}
{{%- endif %}}

{{% macro state_static_sysctld(prefix) -%}}
Expand Down

0 comments on commit faec68f

Please sign in to comment.