diff options
author | Kris Zentner <kzentner@section6.net> | 2018-03-07 12:21:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 12:21:31 -0800 |
commit | 0bd29471f34c61d0dc27dabfb79e5d48791d5019 (patch) | |
tree | 0d910987de52520cc260b1b33981a85cbceb482b | |
parent | 312210c8b50c37780015b3eef7467aed5f13d2c2 (diff) | |
download | ohai-0bd29471f34c61d0dc27dabfb79e5d48791d5019.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 |