getparam() isn't available in all stdlib versions.
authorAshley Penney <ashley.penney@puppetlabs.com>
Wed, 16 Oct 2013 17:08:03 +0000 (13:08 -0400)
committerAshley Penney <ashley.penney@puppetlabs.com>
Wed, 16 Oct 2013 17:08:03 +0000 (13:08 -0400)
There's no need for getparam() here when a regular variable works
just fine.

manifests/ppa.pp

index 7cb88c8cd5a32ec8b591e6abb1f7bac03fef68df..784926841a40d6821f36dc728880b8f1bedd75d6 100644 (file)
@@ -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 = []