summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-17 14:26:36 -0700
committerTim Smith <tsmith@chef.io>2018-07-17 14:26:36 -0700
commit692a8fa83d5ec1c7fca5ccdf922d20161e82b5c6 (patch)
tree86fee2c83fd6f1fb8d87bf5ad8b341c4140c19e9
parent26a350996cab459b6483e67a66faf6030bb46312 (diff)
downloadchef-692a8fa83d5ec1c7fca5ccdf922d20161e82b5c6.tar.gz
Update the error in ifconfig aix provider to use property as wellattribute_to_properties
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/ifconfig/aix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/ifconfig/aix.rb b/lib/chef/provider/ifconfig/aix.rb
index f9ecc1f22e..1fd172097a 100644
--- a/lib/chef/provider/ifconfig/aix.rb
+++ b/lib/chef/provider/ifconfig/aix.rb
@@ -65,7 +65,7 @@ class Chef
def add_command
# ifconfig changes are temporary, chdev persist across reboots.
- raise Chef::Exceptions::Ifconfig, "interface metric attribute cannot be set for :add action" if new_resource.metric
+ raise Chef::Exceptions::Ifconfig, "interface metric property cannot be set for :add action" if new_resource.metric
command = [ "chdev", "-l", new_resource.device, "-a", "netaddr=#{new_resource.name}" ]
command += [ "-a", "netmask=#{new_resource.mask}" ] if new_resource.mask
command += [ "-a", "mtu=#{new_resource.mtu}" ] if new_resource.mtu