HomePhorge

Don't allow resource titles which aren't strings
cc4d8d22be15Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Don't allow resource titles which aren't strings

It was possible to create resources whose titles weren't strings, by
using a variable containing a hash, or the result of a function which
doesn't return a string. This can cause problems resolving relationships
when the stringified version of the title differs between master and
agent.

Now we will only accept primitives, and will stringify them. That is:
string, symbol, number, boolean. Arrays or nested arrays will still be
flattened and used to create multiple resources. Any other value (for
instance: a hash) will cause a parse error.

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU8c5826f2056e: (maint) Add tags to .gitingore
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPUcc4d8d22be15: Don't allow resource titles which aren't strings (authored by Nick Lewis <nick@puppetlabs.com>).Jul 11 2012, 12:52 AM