Skip to content

Commit bc152cd

Browse files
committed
Update installed_env_has_login_defs to support SLE16
1 parent ffb80e4 commit bc152cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/applicability/oval/installed_env_has_login_defs.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
{{% if pkg_system == "rpm" %}}
1818
<linux:rpminfo_test check="all" check_existence="at_least_one_exists"
1919
id="test_env_has_login_defs_installed" version="1"
20-
{{% if product in ["sle12", "sle15", "slmicro5", "slmicro6"] %}}
20+
{{% if 'sle' in product or 'slmicro' in product %}}
2121
comment="system has package shadow installed, which provides the /etc/login.defs file.">
2222
{{% else %}}
2323
comment="system has package shadow-utils installed, which provides the /etc/login.defs file.">
2424
{{% endif %}}
2525
<linux:object object_ref="obj_env_has_login_defs_installed" />
2626
</linux:rpminfo_test>
2727
<linux:rpminfo_object id="obj_env_has_login_defs_installed" version="1">
28-
<linux:name>{{% if product in ["sle12", "sle15", "slmicro5", "slmicro6"] %}}shadow{{% else %}}shadow-utils{{% endif %}}</linux:name>
28+
<linux:name>{{% if 'sle' in product or 'slmicro' in product %}}shadow{{% else %}}shadow-utils{{% endif %}}</linux:name>
2929
</linux:rpminfo_object>
3030
{{% elif pkg_system == "dpkg" %}}
3131
<linux:dpkginfo_test check="all" check_existence="all_exist"

0 commit comments

Comments
 (0)