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

syntax error cause nil

Added by Kim Johansen almost 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

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

We've Moved!

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


Description

hiera fails with the follow error if datadir is not indented. This should give a more proper error message.

DEBUG: Thu May 09 10:08:51 +0200 2013: Hiera YAML backend starting DEBUG: Thu May 09 10:08:51 +0200 2013: Looking up app03_javamem in YAML backend DEBUG: Thu May 09 10:08:51 +0200 2013: Looking for data source defaults /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:22:in datadir': undefined method[]‘ for nil:NilClass (NoMethodError)

    from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:33:in `datafile'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend/yaml_backend.rb:18:in `lookup'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:68:in `datasources'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:66:in `map'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:66:in `datasources'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend/yaml_backend.rb:16:in `lookup'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:182:in `lookup'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:179:in `each'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:179:in `lookup'
    from /usr/lib/ruby/site_ruby/1.8/hiera.rb:64:in `lookup'
    from /usr/bin/hiera:220

History

#1 Updated by Gerardo Santana Gomez Garrido almost 3 years ago

pull request https://github.com/puppetlabs/hiera/pull/134 fixes this issue

#2 Updated by Anonymous almost 3 years ago

  • Status changed from Unreviewed to In Topic Branch Pending Review
  • Target version set to 1.2.x
  • Branch set to https://github.com/puppetlabs/hiera/pull/134

#3 Updated by Anonymous almost 3 years ago

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

#4 Updated by eric sorenson over 2 years ago

  • Target version changed from 1.2.x to 1.3.0

Found this while scrubbing for release; it’s merged and will go out the door in 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