The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:

Feature #20755

Add Pretty Print to command line hiera output

Added by Nathan Huisman almost 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Nathan Huisman% Done:

0%

Category:hieraEstimated time:0.01 hour
Target version:1.3.0
Keywords: Affected Hiera Version:1.2.1
Branch:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com


Description

Modify the hiera binary to use pp for output

diff —git a/bin/hiera b/bin/hiera index ddd4daa..ce2875e 100755 —– a/bin/hiera +++ b/bin/hiera @@ -24,6 +24,7 @@ end require ‘hiera’ require ‘hiera/util’ require ‘optparse’ +require ‘pp’

options = { :default => nil, @@ -222,5 +223,5 @@ ans = hiera.lookup(options[:key], options[:default], options if ans.is_a?(String) puts ans else – p ans + pp ans end

History

#1 Updated by Nathan Huisman almost 3 years ago

Added pull request

https://github.com/puppetlabs/hiera/pull/135

#2 Updated by Anonymous over 2 years ago

  • Status changed from Unreviewed to Merged - Pending Release
  • Target version changed from 1.2.x to 1.3.0

Merged into master in

#3 Updated by Melissa Stone over 2 years ago

  • Status changed from Merged - Pending Release to Closed

Released in Hiera 1.3.0-rc2

Also available in: Atom PDF