diff options
author | Tim Smith <tsmith@chef.io> | 2017-04-03 10:48:59 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-04-03 10:48:59 -0700 |
commit | 6291b85282c663ef026a321328e490c159af7c5f (patch) | |
tree | d790a73a6635d9915ad68589fd7db3ee76c56f01 | |
parent | 582b86312ba31a91dfec5e1e16556f60f4beab6b (diff) | |
download | ohai-6291b85282c663ef026a321328e490c159af7c5f.tar.gz |
Don’t use send
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/ohai/plugins/cloud_v2.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ohai/plugins/cloud_v2.rb b/lib/ohai/plugins/cloud_v2.rb index 733108d8..47a3a31c 100644 --- a/lib/ohai/plugins/cloud_v2.rb +++ b/lib/ohai/plugins/cloud_v2.rb @@ -285,10 +285,10 @@ Ohai.plugin(:CloudV2) do # Fill cloud hash with digital_ocean values def get_digital_ocean_values - @cloud_attr_obj.send("add_ipv4_addr", digital_ocean["interfaces"]["public"][0]["ipv4"]["ip_address"], :public) rescue NoMethodError - @cloud_attr_obj.send("add_ipv4_addr", digital_ocean["interfaces"]["private"][0]["ipv4"]["ip_address"], :private) rescue NoMethodError - @cloud_attr_obj.send("add_ipv6_addr", digital_ocean["interfaces"]["public"][0]["ipv6"]["ip_address"], :public) rescue NoMethodError - @cloud_attr_obj.send("add_ipv6_addr", digital_ocean["interfaces"]["private"][0]["ipv6"]["ip_address"], :private) rescue NoMethodError + @cloud_attr_obj.add_ipv4_addr(digital_ocean["interfaces"]["public"][0]["ipv4"]["ip_address"], :public) rescue NoMethodError + @cloud_attr_obj.add_ipv4_addr(digital_ocean["interfaces"]["private"][0]["ipv4"]["ip_address"], :private) rescue NoMethodError + @cloud_attr_obj.add_ipv6_addr(digital_ocean["interfaces"]["public"][0]["ipv6"]["ip_address"], :public) rescue NoMethodError + @cloud_attr_obj.add_ipv6_addr(digital_ocean["interfaces"]["private"][0]["ipv6"]["ip_address"], :private) rescue NoMethodError @cloud_attr_obj.provider = "digital_ocean" end |