summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/azure.rb
diff options
context:
space:
mode:
authorKris Zentner <kzentner@section6.net>2018-03-07 12:21:31 -0800
committerKris Zentner <krisz@microsoft.com>2018-03-07 14:31:31 -0800
commit71cd12714cba6ba3d31ee863e017f735b15ec1e0 (patch)
tree0d910987de52520cc260b1b33981a85cbceb482b /lib/ohai/plugins/azure.rb
parent3591c6481095a34658ed3d352283e7de5b3022c0 (diff)
downloadohai-71cd12714cba6ba3d31ee863e017f735b15ec1e0.tar.gz
Fixing changes via chefstyle
Signed-off-by: Kris Zentner <krisz@microsoft.com>
Diffstat (limited to 'lib/ohai/plugins/azure.rb')
-rw-r--r--lib/ohai/plugins/azure.rb5
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