summaryrefslogtreecommitdiff
path: root/lib/chef/provider/ifconfig.rb
diff options
context:
space:
mode:
authorkaustubh-d <kausubh@clogeny.com>2013-07-16 10:07:56 -0700
committeradamedx <adamed@opscode.com>2013-07-23 10:35:31 -0700
commitda92d39c11fe801f9e1cd65247dc70fba44500eb (patch)
treed6ce7c57f21e04e6748180eb1f82f7461d6ffb80 /lib/chef/provider/ifconfig.rb
parent37392e6aecc923698a94b1b6046a2d2fea940d76 (diff)
downloadchef-da92d39c11fe801f9e1cd65247dc70fba44500eb.tar.gz
fix - set the current resource device properly.
Diffstat (limited to 'lib/chef/provider/ifconfig.rb')
-rw-r--r--lib/chef/provider/ifconfig.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/ifconfig.rb b/lib/chef/provider/ifconfig.rb
index 17dab0ebf3..d55e792ae7 100644
--- a/lib/chef/provider/ifconfig.rb
+++ b/lib/chef/provider/ifconfig.rb
@@ -76,7 +76,7 @@ class Chef
@interface = @interfaces.fetch(@new_resource.device)
@current_resource.target(@new_resource.target)
- @current_resource.device(@int_name)
+ @current_resource.device(@new_resource.device)
@current_resource.inet_addr(@interface["inet_addr"])
@current_resource.hwaddr(@interface["hwaddr"])
@current_resource.bcast(@interface["bcast"])