Skip to content

Commit c682c5a

Browse files
committed
(PUP-2521) Remove reference to windows-pr ERROR_FILE_NOT_FOUND constant
Previously, bundle exec rspec spec/unit/provider/package/windows/package_spec.rb would fail on windows with ruby 2 x64, with the error message: NameError: uninitialized constant Windows::Error as it referenced a constant from windows-pr, which we are in the process of removing. This commit changes the code to use the same constant defined in Puppet::Util::Windows::Error.
1 parent 8ce8a25 commit c682c5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/package/windows/package.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def self.with_key(&block)
4242
end
4343
end
4444
rescue Puppet::Util::Windows::Error => e
45-
raise e unless e.code == Windows::Error::ERROR_FILE_NOT_FOUND
45+
raise e unless e.code == Puppet::Util::Windows::Error::ERROR_FILE_NOT_FOUND
4646
end
4747
end
4848
end

0 commit comments

Comments
 (0)