diff --git a/lib/health_inspector/checklists/cookbooks.rb b/lib/health_inspector/checklists/cookbooks.rb index 61aabaf..6d94aed 100644 --- a/lib/health_inspector/checklists/cookbooks.rb +++ b/lib/health_inspector/checklists/cookbooks.rb @@ -43,8 +43,10 @@ def validate_changes_on_the_server_not_in_the_repo path = cookbook_path.join("#{manifest_record["path"]}") if path.exist? - checksum = checksum_cookbook_file(path) - messages << "#{manifest_record['path']}" if checksum != manifest_record['checksum'] + if path.basename.to_s != '.git' + checksum = checksum_cookbook_file(path) + messages << "#{manifest_record['path']}" if checksum != manifest_record['checksum'] + end else messages << "#{manifest_record['path']} does not exist in the repo" end diff --git a/lib/health_inspector/version.rb b/lib/health_inspector/version.rb index 1d5d968..a4ef465 100644 --- a/lib/health_inspector/version.rb +++ b/lib/health_inspector/version.rb @@ -1,3 +1,3 @@ module HealthInspector - VERSION = "0.6.2" + VERSION = "0.6.3" end