fixed some logic

This commit is contained in:
mh 2009-03-12 23:33:08 +00:00
parent 8c4350ecab
commit aa9eb617cd

View file

@ -104,7 +104,7 @@ define user::managed(
}
if $gid != 'absent' {
if $gid != 'uid' {
if $gid == 'uid' {
if $uid != 'absent' {
$real_gid = $uid
}
@ -120,11 +120,9 @@ define user::managed(
if $name != 'root' {
if $uid == 'absent' {
if $manage_group {
if $ensure == 'absent' {
group{$name:
ensure => absent,
}
if $manage_group and ($ensure == 'absent') {
group{$name:
ensure => absent,
}
}
} else {