Skip to content

Commit 1ce938e

Browse files
author
Stefan Peer
committed
Add Support for Hashdiff 1.0.0
When using Hashdiff version 1.0.0, octocatalog-diff failed with the following error: `uninitialized constant OctocatalogDiff::CatalogDiff::Differ::HashDiff (NameError)` Hashdiff 1.0.0 was released on July, 15 2019 and replaced the constant "HashDiff" with "Hashdiff". This commit fixes this error and keeps octocatalog-diff backwards compatible to older versions of HashDiff.
1 parent c0ec977 commit 1ce938e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
require_relative '../util/util'
1212
require_relative 'filter'
1313

14+
HashDiff = Hashdiff unless defined? HashDiff
15+
1416
module OctocatalogDiff
1517
module CatalogDiff
1618
# Calculate the difference between two Puppet catalogs.

0 commit comments

Comments
 (0)