allnodeinfo = lookupvar('deprecated::allnodeinfo')
raise Puppet::ParseError, "entropy_provider: Cannot learn fqdn" unless fqdn
- raise Puppet::ParseError, "entropy_provider: Cannot learn nodeinfo" unless nodeinfo
- raise Puppet::ParseError, "entropy_provider: Cannot learn localinfo" unless localinfo
- raise Puppet::ParseError, "entropy_provider: Cannot learn allnodeinfo" unless allnodeinfo
+ raise Puppet::ParseError, "entropy_provider: Cannot learn nodeinfo" unless nodeinfo and nodeinfo.size > 0
+ raise Puppet::ParseError, "entropy_provider: Cannot learn localinfo" unless localinfo and localinfo.size > 0
+ raise Puppet::ParseError, "entropy_provider: Cannot learn allnodeinfo" unless allnodeinfo and allnodeinfo.size > 0
# find where all the entropy keys are
provider = []