From 00d3218d1ced516b6cb555155a631c0071d46d80 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 15 Jul 2009 17:10:21 -0400 Subject: remove redundant case statements which tested to see if the package ensure version variables were set changed the $rdiff-backup_ensure_version variable to $rdiff_backup_ensure_version as dashes are not allowed in variable names --- manifests/client.pp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/manifests/client.pp b/manifests/client.pp index 999108c..d799014 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -87,9 +87,6 @@ class backupninja::client { } class backupninja::client::maildir inherits backupninja::client { - case $rsync_ensure_version { - '': { $rsync_ensure_version = "present" } - } if !defined(Package["rsync"]) { if $rsync_ensure_version == '' { $rsync_ensure_version = 'installed' } @@ -100,14 +97,11 @@ class backupninja::client::maildir inherits backupninja::client { } class backupninja::client::rdiff-backup inherits backupninja::client { - case $rdiff-backup_ensure_version { - '': { $rdiff-backup_ensure_version = "present" } - } if !defined(Package["rdiff-backup"]) { - if $rdiff-backup_ensure_version == '' { $rdiff-backup_ensure_version = 'installed' } + if $rdiff_backup_ensure_version == '' { $rdiff_backup_ensure_version = 'installed' } package { 'rdiff-backup': - ensure => $rdiff-backup_ensure_version, + ensure => $rdiff_backup_ensure_version, } } } -- cgit v1.2.3