Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
Agent
-
3
-
Agent 2017-06-14
-
Bug Fix
-
The command {{puppet resource}} could output information about resources that could not be directly used in a puppet manifest due to errors related to quoting and escaped characters. This has now been cleaned up.
-
No Action
Description
When using thomas.hallgren rich-data-wip branch PCore resources are output with incorrect top level quoting:
$ puppet resource xe_ietf_ospf
|
xe_ietf_ospf { '100':
|
routing_instance => 'Vanilla_ice::Ospf::Routing_instance({ #<-This value should not be quoted
|
'name' => 'default',
|
'description' => 'default-vrf [read-only]',
|
'routing_protocols' => Vanilla_ice::Ospf::Routing_protocols({
|
...
|
thomas.hallgren's best guess is "Resource #to_s just quotes everything that it doesn't recognize in single qoutes"
This prevents users from directly copying the output of a PCore resource into a manifest.