fixed some logic
This commit is contained in:
parent
8c4350ecab
commit
aa9eb617cd
1 changed files with 4 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue