HomePhorge

Fixed #6009 - nested member list vs directory service group provider
f1ab58839b5fUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fixed #6009 - nested member list vs directory service group provider

The Directory Service group (and user) provider behaves erratically if members
is a nested list; this happens with the following manifest:

$r = ["root"]
$a = ["daemon", "crc"]
$n = ["nobody"]
group { "testgroup":
  ensure => present,
  members => [$r, $a, $n]
}

This resolves the issue by flattening the list at the time we are using it;
while a more general solution might be desirable this resolves the specific
issue cleanly enough.

Original patch from Clay Caviness.
Tests by Daniel Pittman <daniel@puppetlabs.com>

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
Signed-off-by: James Turnbull <james@lovedthanlost.net>

Details

Provenance
James Turnbull <james@lovedthanlost.net>Authored on
Daniel Pittman <daniel@rimspace.net>Committed on Jan 26 2011, 7:11 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU41090d3617d9: Merge branch 'ticket/2.6.next/5900' into 2.6.next
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@rimspace.net> committed rPUf1ab58839b5f: Fixed #6009 - nested member list vs directory service group provider (authored by James Turnbull <james@lovedthanlost.net>).Jan 26 2011, 7:11 AM