[PUP-3706] console format should pretty print nested structures Created: 2014/11/26  Updated: 2019/04/04  Resolved: 2015/03/31

Status: Closed
Project: Puppet
Component/s: None
Affects Version/s: None
Fix Version/s: PUP 4.0.0

Type: Bug Priority: Normal
Reporter: Erik Dalén Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relates to PUP-3524 Switch from YAML (et al) to JSON Closed
relates to PUP-7256 Ensure console pretty printing mainta... Closed
relates to PUP-3699 Render facts as yaml by default Closed
Story Points: 0
Sprint: Client 2015-04-15
QA Contact: Eric Thompson


The code for the console format says it should pretty print, but it doesn't in fact do that.


risk: medium
probability: medium
severity: low
test layer: unit

Comment by Josh Cooper [ 2015/03/02 ]

Merged in ac56d115ac90, but is causing CI failures:


edm3pndp0rngyd6.delivery.puppetlabs.net (master) 18:53:55$ puppet certificate generate edm3pndp0rngyd6.delivery.puppetlabs.net --ca-location remote --server edm3pndp0rngyd6.delivery.puppetlabs.net
Error: only generation of JSON objects or arrays allowed
Error: Try 'puppet help certificate generate' for usage

Comment by Josh Cooper [ 2015/03/31 ]

Follow on commit was made in e1551442

Comment by Josh Cooper [ 2015/03/31 ]

0 ~/work/puppet (stable)  $ be puppet facts find
  "values": {
    "architecture": "x86_64",
    "kernel": "Darwin",
    "virtual": "physical",
    "is_virtual": false,
    "hardwaremodel": "x86_64",
    "operatingsystem": "Darwin",
    "timezone": "PDT",
    "uptime": "54 days",
    "uptime_days": 54,
    "uptime_hours": 1300,
    "uptime_seconds": 4682901,
    "clientversion": "4.0.0-rc2",
    "clientnoop": false
  "timestamp": "2015-03-31T14:31:31.021992000-07:00",
  "expiration": "2015-03-31T15:01:31.022360000-07:00"

Generated at Tue Feb 25 17:37:15 PST 2020 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.