dayglojesus / managedmac

Comprehensive Puppet module for OS X.
http://dayglojesus.github.io/managedmac/
Apache License 2.0
62 stars 21 forks source link

Raw Constructors that accept arrays/hashes as params should not process empty structures #32

Closed dayglojesus closed 10 years ago

dayglojesus commented 10 years ago

If a Raw Constructor class is declared and its params specify an empty data structure, the class should not prepare resources.

Example:

include managedmac::groups
# Create an empty Hash
$accounts = {}
class { 'managedmac::groups':
  accounts => $accounts,
}

This code will result in an error.