diff options
author | Kris Zentner <kzentner@section6.net> | 2018-03-07 12:21:31 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-14 14:43:30 -0700 |
commit | a13fac461a299322a838b9d5d3be17fc78e9e285 (patch) | |
tree | 4d3004b63ed0aa65e3968ca185b87a4758d849fd | |
parent | b353b87e729b895b454905de1653490d93f0a1ea (diff) | |
download | ohai-a13fac461a299322a838b9d5d3be17fc78e9e285.tar.gz |
Fixing changes via chefstyle
-rw-r--r-- | lib/ohai/plugins/azure.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ohai/plugins/azure.rb b/lib/ohai/plugins/azure.rb index 7f74299d..14cdf63b 100644 --- a/lib/ohai/plugins/azure.rb +++ b/lib/ohai/plugins/azure.rb @@ -73,6 +73,7 @@ Ohai.plugin(:Azure) do metadata["compute"] = Mash.new metadata end + def initialize_metadata_mash_network metadata = Mash.new metadata["network"] = Mash.new @@ -81,7 +82,7 @@ Ohai.plugin(:Azure) do metadata["network"][type] = [] end metadata - end + end def fetch_ip_data(data, type, field) ips = [] @@ -103,7 +104,7 @@ Ohai.plugin(:Azure) do endpoint_data["compute"].each do |k, v| metadata["compute"][k] = v end - + # receiving network output is not guaranteed unless endpoint_data["network"].nil? metadata = initialize_metadata_mash_network |