Ignore:
Timestamp:
Aug 1, 2017, 3:45:14 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, debian/jessie
Children:
ce0f6a4
Parents:
bcf0be5 (diff), cd0f9cc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into debian/jessie

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getvar.rb

    rbcf0be5 rad28f83  
    2121
    2222    begin
     23      result = nil
    2324      catch(:undefined_variable) do
    24         self.lookupvar("#{args[0]}")
     25        result = self.lookupvar("#{args[0]}")
    2526      end
     27
     28      # avoid relying on incosistent behaviour around ruby return values from catch
     29      result
    2630    rescue Puppet::ParseError # Eat the exception if strict_variables = true is set
    2731    end
Note: See TracChangeset for help on using the changeset viewer.