diff options
author | Julian C. Dunn <jdunn@aquezada.com> | 2015-05-03 17:47:06 -0400 |
---|---|---|
committer | Julian C. Dunn <jdunn@chef.io> | 2015-07-04 21:11:53 -0700 |
commit | a7d9433b5e25fa79aff77834e303ade47ff02738 (patch) | |
tree | a84819f1056a33ae733bf12188f9499184cb9831 | |
parent | cfd2b1fa1b26e8b0aa92a5ba8bd294b96379b2fa (diff) | |
download | chef-a7d9433b5e25fa79aff77834e303ade47ff02738.tar.gz |
Use target, not name, if it is specified.
-rw-r--r-- | lib/chef/provider/ifconfig.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/ifconfig.rb b/lib/chef/provider/ifconfig.rb index 468e1ec639..7869917307 100644 --- a/lib/chef/provider/ifconfig.rb +++ b/lib/chef/provider/ifconfig.rb @@ -194,7 +194,7 @@ class Chef private def add_command - command = "ifconfig #{@new_resource.device} #{@new_resource.name}" + command = "ifconfig #{@new_resource.device} #{@new_resource.target}" command << " netmask #{@new_resource.mask}" if @new_resource.mask command << " metric #{@new_resource.metric}" if @new_resource.metric command << " mtu #{@new_resource.mtu}" if @new_resource.mtu @@ -202,7 +202,7 @@ class Chef end def enable_command - command = "ifconfig #{@new_resource.device} #{@new_resource.name}" + command = "ifconfig #{@new_resource.device} #{@new_resource.target}" command << " netmask #{@new_resource.mask}" if @new_resource.mask command << " metric #{@new_resource.metric}" if @new_resource.metric command << " mtu #{@new_resource.mtu}" if @new_resource.mtu |