lib/puppet-debugger/support/facts.rb in puppet-debugger-0.4.0 vs lib/puppet-debugger/support/facts.rb in puppet-debugger-0.4.1
- old
+ new
@@ -4,19 +4,19 @@
# in the future we will want to grab real facts from real systems via puppetdb
# or enc data
# allow the user to specify the facterdb filter
def dynamic_facterdb_filter
- ENV['REPL_FACTERDB_FILTER'] || default_facterdb_filter
+ ENV['DEBUGGER_FACTERDB_FILTER'] || default_facterdb_filter
end
def default_facterdb_filter
"operatingsystem=#{facter_os_name} and operatingsystemrelease=#{facter_os_version} and architecture=x86_64 and facterversion=#{facter_version}"
end
def facter_version
- ENV['REPL_FACTER_VERSION'] || default_facter_version
+ ENV['DEBUGGER_FACTER_VERSION'] || default_facter_version
end
# return the correct supported version of facter facts
def default_facter_version
if Gem::Version.new(Puppet.version) >= Gem::Version.new(4.4)
@@ -25,14 +25,14 @@
'/^2\.4/'
end
end
def facter_os_name
- ENV['REPL_FACTER_OS_NAME'] || 'Fedora'
+ ENV['DEBUGGER_FACTER_OS_NAME'] || 'Fedora'
end
def facter_os_version
- ENV['REPL_FACTER_OS_VERSION'] || '23'
+ ENV['DEBUGGER_FACTER_OS_VERSION'] || '23'
end
def set_facts(value)
@facts = value
end