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:

Bug #20519

small fix in hiera/filecache.rb

Added by Yuri Arabadji almost 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:
Priority:HighDue date:
Assignee:eric sorenson% Done:

0%

Category:hiera
Target version:1.3.0
Keywords: Affected Hiera Version:
Branch:https://github.com/puppetlabs/hiera/pull/133

We've Moved!

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


Description

on line 35 in hiera/filecache.rb, when exc is raised, I’m getting:

hiera/filecache.rb:35:in `%‘: malformed format string – %S (ArgumentError)

The fix is to replace S with lowercase s:

Hiera.debug(“Reading data from %s failed: %s: %s” % [path, e.class, e.to_s])

tnx.

History

#1 Updated by eric sorenson almost 3 years ago

  • Assignee set to eric sorenson
  • Branch set to https://github.com/puppetlabs/hiera/pull/133

Thanks for the report, sent as pull request

#2 Updated by eric sorenson almost 3 years ago

  • Status changed from Unreviewed to In Topic Branch Pending Review

#3 Updated by Anonymous almost 3 years ago

  • Category set to hiera
  • Status changed from In Topic Branch Pending Review to Merged - Pending Release

Summary: Merged to master in c5781d1

#4 Updated by Melissa Stone over 2 years ago

  • Target version set to 1.3.0

#5 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