(maint) Fix minor rubocop violations

Fix minor rubocop violations
This commit is contained in:
Glenn Sarti 2017-07-07 17:04:12 -07:00
parent 30946fab8e
commit 5e0aefc629
2 changed files with 2 additions and 1 deletions

View file

@ -11,6 +11,7 @@ AllCops:
- 'vendor/**/*' - 'vendor/**/*'
- Gemfile - Gemfile
- Rakefile - Rakefile
- Vagrantfile
Style/Documentation: Style/Documentation:
Enabled: false Enabled: false

View file

@ -571,7 +571,7 @@ module Vmpooler
datacenter.hostFolder.children.find { |cluster_object| cluster_object.name == cluster } datacenter.hostFolder.children.find { |cluster_object| cluster_object.name == cluster }
end end
def get_cluster_host_utilization(cluster, model=nil) def get_cluster_host_utilization(cluster, model = nil)
cluster_hosts = [] cluster_hosts = []
cluster.host.each do |host| cluster.host.each do |host|
host_usage = get_host_utilization(host, model) host_usage = get_host_utilization(host, model)