Skip to content

Commit

Permalink
Merge pull request #2538 from cloudfoundry/correct-pr-2537
Browse files Browse the repository at this point in the history
Correct PR #2537
  • Loading branch information
klakin-pivotal authored Jul 22, 2024
2 parents a5a4e41 + 90c283f commit c453076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bosh-monitor/lib/bosh/monitor/instance_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(event_processor)
def fetch_deployments(director)
deployments = director.deployments

@instance_manager.sync_deployments(deployments)
sync_deployments(deployments)

deployments.each do |deployment|
deployment_name = deployment['name']
Expand All @@ -34,7 +34,7 @@ def fetch_deployments(director)

@logger.debug("Fetching instances information for '#{deployment_name}'...")
instances_data = director.get_deployment_instances(deployment_name)
@instance_manager.sync_deployment_state(deployment, instances_data)
sync_deployment_state(deployment, instances_data)
end
@director_initial_deployment_sync_done = true
end
Expand Down
2 changes: 1 addition & 1 deletion src/bosh-monitor/lib/bosh/monitor/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def run
@logger.info('HealthMonitor starting...')

Sync do
start_http_server
connect_to_mbus
@director_monitor = DirectorMonitor.new(Bhm)
@director_monitor.subscribe
@instance_manager.setup_events
start_http_server
setup_timers
update_resurrection_config
@logger.info("BOSH HealthMonitor #{Bhm::VERSION} is running...")
Expand Down

0 comments on commit c453076

Please sign in to comment.