Check if python-software-properties is defined before attempting to define it.
This commit is contained in:
parent
8171d35470
commit
a4af11f7bc
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue