]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Check if python-software-properties is defined before attempting to define it.
authorPeter Drake <pdrake@allplayers.com>
Fri, 13 Jan 2012 15:40:41 +0000 (10:40 -0500)
committerMatthaus Litteken <matthaus@puppetlabs.com>
Fri, 24 Feb 2012 05:27:48 +0000 (21:27 -0800)
manifests/init.pp

index 472ed06d46a44f2e81d2755d2c247bc41da774be..0f6bcef6218767de8fd62d3e5785779175c8d4ee 100644 (file)
@@ -31,7 +31,9 @@ class apt(
     false => true
   }
 
-  package { "python-software-properties": }
+  if ! defined(Package["python-software-properties"]) {
+    package { "python-software-properties": }
+  }
 
   file { "sources.list":
     path => "${apt::params::root}/sources.list",