[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
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
Template:
Story Points: 0
Sprint: Client 2015-04-15
QA Contact: Eric Thompson

 Description   

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

QA

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



 Comments   
Comment by Josh Cooper [ 2015/03/02 ]

Merged in ac56d115ac90, but is causing CI failures:

https://jenkins.puppetlabs.com/job/platform_aio-component_intn-sys_master/107/SLAVE_LABEL=beaker,TEST_TARGET=rhel7/testReport/junit/(root)/tests/ticket_3360_allow_duplicate_csr_with_option_set_rb/

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.