Commit 02a03a36 authored by Emmanuel Medernach's avatar Emmanuel Medernach
Browse files

Possibilite d'avoir un tableau vide pour les repository

parent 8fffe8e5
......@@ -7,10 +7,12 @@ class yum::config {
content => template('yum/yum.conf.erb'),
}
$listofrepos = array2hash($yum::repositories[$yum::profile], $yum::description)
create_resources(yumrepo, $listofrepos)
if (is_array($yum::repositories[$yum::profile])) {
$listofrepos = array2hash($yum::repositories[$yum::profile], $yum::description)
create_resources(yumrepo, $listofrepos)
}
if (has_key($yum::grouplist, $yum::group)) {
if ($yum::grouplist[$yum::group] != undef) {
package { $yum::grouplist[$yum::group]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment