Skip to content

Commit

Permalink
Merge pull request #12173 from teacup-on-rockingchair/fix_no_quotes_u…
Browse files Browse the repository at this point in the history
…sage_in_oval_check_dropin_file

Honour the no_quotes paramter of oval_check_dropin_file macro
  • Loading branch information
marcusburghardt authored Jul 19, 2024
2 parents 9c9ec43 + 8a3083c commit d0496ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shared/macros/10-oval.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,12 @@ Generates the :code:`<affected>` tag for OVAL check using correct product platfo
</criteria>
{{%- endif %}}
</definition>

{{%- set quotes = "'\"" -%}}
{{%- if no_quotes == "true" %}}
{{%- set quotes = "" -%}}
{{%- endif %}}

{{{ oval_line_in_file_test(path, parameter) }}}
{{{ oval_line_in_file_object(path, section, prefix_regex, parameter, separator_regex, false, multi_value) }}}
{{{ oval_line_in_file_state(value, multi_value, quotes) }}}
Expand Down

0 comments on commit d0496ba

Please sign in to comment.