Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
PUP 3.6.1, PUP 3.6.2, PUP 5.5.1
-
None
-
Platform Core
-
Bug Fix
-
Generating graphs of catalogs (Eg: puppet apply --graph) now correctly handles resources with double quotes in the title.
Description
Puppet generates invalid .dot files.
If a resource name contains a quoted string the name is not escaped in the .dot file.
Example content generated by puppet:
"Postgresql_psql[GRANT ALL ON DATABASE "puppetdb" TO "puppetdb"]" [
|
fontsize = 8,
|
label = "Postgresql_psql[GRANT ALL ON DATABASE "puppetdb" TO "puppetdb"]"
|
]
|
resulting in something like this:
Correctly escaped it would look like this:
"Postgresql_psql[GRANT ALL ON DATABASE \"puppetdb\" TO \"puppetdb\"]" [
|
fontsize = 8,
|
label = "Postgresql_psql[GRANT ALL ON DATABASE \"puppetdb\" TO \"puppetdb\"]"
|
]
|
The behavior has been reproduced with Puppet 3.6.1 and 3.6.2