diff --git a/systemd/init.sls b/systemd/init.sls
index ce4fe6f16dfd56b95a046816fd5309458b3443ac..880c3971b4cae3ba7a0eac87adb7ccb528a35227 100644
--- a/systemd/init.sls
+++ b/systemd/init.sls
@@ -1,6 +1,6 @@
 systemd_pkgs:
   pkg.latest:
-{%- if grains['osmajorrelease'] >= "9" and grains['osmajorrelease'] <= "12" %}
+{%- if grains['osmajorrelease'] >= 9 and grains['osmajorrelease'] <= 12 %}
     - fromrepo: {{ oscodename }}-backports
 {%- endif %}
     - pkgs: