From: Peter Drake Date: Fri, 13 Jan 2012 15:40:41 +0000 (-0500) Subject: Check if python-software-properties is defined before attempting to define it. X-Git-Tag: 0.0.1~5^2~1 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a4af11f7bc37211c690297c7893d99c12f7ef302;p=puppet-modules%2Fpuppetlabs-apt.git Check if python-software-properties is defined before attempting to define it. --- diff --git a/manifests/init.pp b/manifests/init.pp index 472ed06..0f6bcef 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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",