Browse Source

Check if python-software-properties is defined before attempting to define it.

Peter Drake 12 years ago
parent
commit
a4af11f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      manifests/init.pp

+ 3 - 1
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",