summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/network_device.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/network_device.rb')
-rw-r--r--lib/puppet/util/network_device.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/puppet/util/network_device.rb b/lib/puppet/util/network_device.rb
index d9c1aa34d..7fb8e2ff3 100644
--- a/lib/puppet/util/network_device.rb
+++ b/lib/puppet/util/network_device.rb
@@ -9,4 +9,9 @@ class Puppet::Util::NetworkDevice
rescue => detail
raise "Can't load #{device.provider} for #{device.name}: #{detail}"
end
-end \ No newline at end of file
+
+ # Should only be used in tests
+ def self.teardown
+ @current = nil
+ end
+end