Ignore:
Timestamp:
Jul 31, 2017, 6:42:27 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
fc9d514
Parents:
eb1ccd6
Message:

Updated apt and stdlib module to newer versions (stdlib version used by current ntp module)

File:
1 edited

Legend:

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

    reb1ccd6 rbe0859f  
    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.