pdksync_heads/master-0-gbf720df

This commit is contained in:
Eimhin Laverty
2018-12-17 11:31:10 +00:00
parent 35f5fa9e33
commit 9526767b95
8 changed files with 23 additions and 11 deletions

View File

@@ -2,7 +2,6 @@
#
# Facts specified here will override the values provided by rspec-puppet-facts.
---
concat_basedir: ""
ipaddress: "172.16.254.254"
is_pe: false
macaddress: "AA:AA:AA:AA:AA:AA"

View File

@@ -36,8 +36,8 @@ end
def ensure_module_defined(module_name)
module_name.split('::').reduce(Object) do |last_module, next_module|
last_module.const_set(next_module, Module.new) unless last_module.const_defined?(next_module)
last_module.const_get(next_module)
last_module.const_set(next_module, Module.new) unless last_module.const_defined?(next_module, false)
last_module.const_get(next_module, false)
end
end