Skip to content

Commit 829d4ad

Browse files
committed
Support nil / undef values for resource params
1 parent eacd90d commit 829d4ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/octocatalog-diff/catalog-diff/differ.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def hashdiff_initial(catalog1_in, catalog2_in)
558558

559559
# Added a new key that points to some kind of data structure that we know how
560560
# to handle.
561-
classes = [String, Integer, Float, TrueClass, FalseClass, Array, Hash]
561+
classes = [String, Integer, Float, TrueClass, FalseClass, Array, Hash, NilClass]
562562
if obj[1] =~ /^(.+)\f([^\f]+)$/ && OctocatalogDiff::Util::Util.object_is_any_of?(obj[2], classes)
563563
hashdiff_add_remove.add(obj[1])
564564
next

0 commit comments

Comments
 (0)