Skip to content

Commit

Permalink
Add comments for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Apr 13, 2017
1 parent 1b20a94 commit c1db244
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/application_helper/button/smart_state_scan.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class ApplicationHelper::Button::SmartStateScan < ApplicationHelper::Button::Basic
def check_smart_roles
return
my_zone = MiqServer.my_server.my_zone
MiqServer::ServerSmartProxy::SMART_ROLES.each do |role|
unless MiqServer.all.any? { |s| s.has_active_role?(role) && (s.my_zone == my_zone) }
Expand Down

0 comments on commit c1db244

Please sign in to comment.