Skip to content

Commit

Permalink
Merge pull request #14741 from Ladas/ensure_managers_change_zone_and_…
Browse files Browse the repository at this point in the history
…provider_region_with_cloud_manager

Method for ensuring managers change zone and provider region with CloudManager
  • Loading branch information
agrare authored Apr 12, 2017
2 parents 3ad8333 + dc57d4c commit 9cae782
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions app/models/mixins/has_network_manager_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ module HasNetworkManagerMixin

def ensure_managers
ensure_network_manager
network_manager.name = "#{name} Network Manager"
network_manager.zone_id = zone_id
network_manager.provider_region = provider_region
network_manager.name = "#{name} Network Manager"
ensure_managers_zone_and_provider_region
end

def ensure_managers_zone_and_provider_region
if network_manager
network_manager.zone_id = zone_id
network_manager.provider_region = provider_region
end
end
end
end

0 comments on commit 9cae782

Please sign in to comment.