diff --git a/manifests/wsgi/uwsgi_api.pp b/manifests/wsgi/uwsgi_api.pp
index ede44ab8..9e8ad3c9 100644
--- a/manifests/wsgi/uwsgi_api.pp
+++ b/manifests/wsgi/uwsgi_api.pp
@@ -29,7 +29,7 @@ class heat::wsgi::uwsgi_api (
 
   include heat::deps
 
-  if $::os_package_type != 'debian'{
+  if $::operatingsystem != 'Debian'{
     warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.')
   }
 
diff --git a/manifests/wsgi/uwsgi_api_cfn.pp b/manifests/wsgi/uwsgi_api_cfn.pp
index 10ac2822..4da471fa 100644
--- a/manifests/wsgi/uwsgi_api_cfn.pp
+++ b/manifests/wsgi/uwsgi_api_cfn.pp
@@ -29,7 +29,7 @@ class heat::wsgi::uwsgi_api_cfn (
 
   include heat::deps
 
-  if $::os_package_type != 'debian'{
+  if $::operatingsystem != 'Debian'{
     warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.')
   }