Showing with 8 additions and 8 deletions.
  1. +3 −0 CHANGELOG.md
  2. +0 −5 lib/puppet/feature/windows_env.rb
  3. +4 −2 lib/puppet/provider/windows_env/windows_env.rb
  4. +1 −1 metadata.json
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v2.2.1
- Fixes to prevent autoloading on master from failing

v2.2.0
------
- Puppet 3.7 / Ruby 64 bit compatibility changes.
Expand Down
5 changes: 0 additions & 5 deletions lib/puppet/feature/windows_env.rb

This file was deleted.

6 changes: 4 additions & 2 deletions lib/puppet/provider/windows_env/windows_env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ class Registry
end
end

require 'puppet/feature/windows_env'
require 'puppet/util/feature'

Puppet.features.add(:windows_env, :libs => ['ffi'])

if Puppet.version < '3.4.0'
# This is the best pre-3.4.0 way to do unconditional cleanup for a provider.
Expand Down Expand Up @@ -45,7 +47,7 @@ def evaluate
# The 'windows_env' feature includes FFI. Here we need to be able to fully
# load the provider even if FFI is absent so that the catalog can continue
# (and hopefully install FFI).
if Puppet.features.windows_env?
if Puppet.features.windows_env? && Puppet.features.microsoft_windows?
module self::WinAPI
extend FFI::Library

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "badgerious-windows_env",
"version": "2.2.0",
"version": "2.2.1",
"author": "badgerious",
"summary": "Manages Windows environment variables",
"license": "Apache License, Version 2.0",
Expand Down