puppetlabs/puppet — pull request #834 by domcleal (2012-06-05 20:52:41+00:00)
Title: (#14378) Skip context-based optimisation for complex expressions

When optimising loaded files based on the context given, the context would be
passed into a path expression itself inside quotes. If the user had given a
path expression for the context that contained quotes then these would need to
be escaped, which Augeas doesn't support today.

This disables the optimisation when the user supplies a complex context path,
preventing errors caused by improperly quoted paths.