Skip to content

Commit

Permalink
OCP4: Fix OCP version regex
Browse files Browse the repository at this point in the history
We have issues when the OCP version is something like 4.14.6, the old regex matches this version into both 4.6 and 4.14, this commit change the regex so it requires the match to start with '4'.
  • Loading branch information
Vincent056 committed Feb 20, 2024
1 parent db56fb2 commit 59708f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/applicability/oval/installed_app_is_ocp4.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@

<ind:yamlfilecontent_state id="state_ocp4_{{{ minorversion }}}" version="1">
<ind:value datatype="record">
<field name="#" datatype="string" operation="pattern match">4\.{{{ minorversion }}}.*</field>
<field name="#" datatype="string" operation="pattern match">\b4\.{{{ minorversion }}}.*</field>
</ind:value>
</ind:yamlfilecontent_state>

Expand Down

0 comments on commit 59708f9

Please sign in to comment.