From: Ashley Penney Date: Wed, 16 Oct 2013 17:08:03 +0000 (-0400) Subject: getparam() isn't available in all stdlib versions. X-Git-Tag: 1.4.1~20^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=33064128b91ef3aabaad106b2db62783c6093d06;hp=-c;p=puppet-modules%2Fpuppetlabs-apt.git getparam() isn't available in all stdlib versions. There's no need for getparam() here when a regular variable works just fine. --- 33064128b91ef3aabaad106b2db62783c6093d06 diff --git a/manifests/ppa.pp b/manifests/ppa.pp index 7cb88c8..7849268 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -28,8 +28,8 @@ define apt::ppa( } if defined(Class[apt]) { - $proxy_host = getparam(Class[apt], 'proxy_host') - $proxy_port = getparam(Class[apt], 'proxy_port') + $proxy_host = $apt::proxy_host + $proxy_port = $apt::proxy_port case $proxy_host { false, '': { $proxy_env = []