diff --git a/global/overlay/etc/puppet/setup_cosmos_modules b/global/overlay/etc/puppet/setup_cosmos_modules index e1a4aeb0..4ea9dbb3 100755 --- a/global/overlay/etc/puppet/setup_cosmos_modules +++ b/global/overlay/etc/puppet/setup_cosmos_modules @@ -25,7 +25,7 @@ else: environ = "prod" pattern = r"(.+test.+\.komreg\.net)|(.+\.test\.sveidas\.se)" - if re.match(pattern, domainname): + if re.match(pattern, fqdn): environ = "test" host_info = {