test: replace openscap with compliance in rhsm facts

See https://github.com/osbuild/images/pull/914
This commit is contained in:
Achilleas Koutsou 2024-09-17 19:22:24 +02:00 committed by Tomáš Hozza
parent 2a6fe9122f
commit b0c0e84142

View file

@ -60,7 +60,7 @@ function _instanceCheck() {
fi
if [ -n "$OPENSCAP_CUSTOMIZATION_BLOCK" ]; then
if ! grep -q "image-builder.insights.openscap-profile-id: pci-dss" <<< "$FACTS"; then
if ! grep -q "image-builder.insights.compliance-profile-id: pci-dss" <<< "$FACTS"; then
echo "System doesn't contain the expected image-builder.insights facts (profile-id)"
echo "$FACTS"| grep image-builder
exit 1