Skip to content

Commit 89a36c6

Browse files
committed
Fix unsupported data type error with rspec-puppet master
The symbol used in the value of the facts hash is not a valid type of value for facts, and results in the following error since rspec-puppet@d50acf0e. Puppet::Error: Unsupported data type: 'Symbol' # puppet/lib/puppet/parser/scope.rb:788:in `deep_freeze' # puppet/lib/puppet/parser/scope.rb:781:in `block in deep_freeze' # puppet/lib/puppet/parser/scope.rb:781:in `each' # puppet/lib/puppet/parser/scope.rb:781:in `deep_freeze' # puppet/lib/puppet/parser/scope.rb:764:in `set_facts' # puppet/lib/puppet/parser/compiler.rb:850:in `set_node_parameters' # puppet/lib/puppet/parser/compiler.rb:166:in `block (2 levels) in compile' # puppet/lib/puppet/util/profiler/around_profiler.rb:58:in `profile' # puppet/lib/puppet/util/profiler.rb:51:in `profile' # puppet/lib/puppet/parser/compiler.rb:166:in `block in compile' # puppet/lib/puppet/context.rb:65:in `override' # puppet/lib/puppet.rb:293:in `override' # puppet/lib/puppet/parser/compiler.rb:162:in `compile' # rspec-puppet/lib/rspec-puppet/example/function_example_group.rb:161:in `build_compiler' The fact's presence doesn't change the behaviour, so remove it.
1 parent b65dd1f commit 89a36c6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

spec/functions/has_ip_network_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
let(:facts) do
1010
{
1111
:interfaces => 'eth0,lo',
12-
:network => :undefined,
1312
:network_lo => '127.0.0.0',
1413
:network_eth0 => '10.0.0.0',
1514
}

0 commit comments

Comments
 (0)