Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[dea] Include app_id in router register/unregister message

Change-Id: I21b45224ae22ab800afedea44d7bf718e533965c
  • Loading branch information...
commit c4eeb7840d17879ef5e8a5e6d966342947ab117a 1 parent 38b60df
@anfernee anfernee authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/dea/agent.rb
View
2  lib/dea/agent.rb
@@ -1334,6 +1334,7 @@ def register_instance_with_router(instance, options = {})
return unless (instance and instance[:uris] and not instance[:uris].empty?)
NATS.publish('router.register', {
:dea => VCAP::Component.uuid,
+ :app => instance[:droplet_id],
:host => @local_ip,
:port => instance[:port],
:uris => options[:uris] || instance[:uris],
@@ -1345,6 +1346,7 @@ def unregister_instance_from_router(instance, options = {})
return unless (instance and instance[:uris] and not instance[:uris].empty?)
NATS.publish('router.unregister', {
:dea => VCAP::Component.uuid,
+ :app => instance[:droplet_id],
:host => @local_ip,
:port => instance[:port],
:uris => options[:uris] || instance[:uris]
Please sign in to comment.
Something went wrong with that request. Please try again.