diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2012-11-30 16:37:45 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2012-11-30 16:37:45 +0000 |
| commit | a5fc42f5ade2eb481d0a7fe9c2c562d1be9b50c0 (patch) | |
| tree | 49fe1d5d21e1a713529c7fb7a5c455fe85f39633 | |
| parent | 39c5bb32fb6f61566f977ca6fde9750216237a78 (diff) | |
| download | rabbitmq-server-git-a5fc42f5ade2eb481d0a7fe9c2c562d1be9b50c0.tar.gz | |
Emit events on vhost creation / deletion.
| -rw-r--r-- | src/rabbit_vhost.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_vhost.erl b/src/rabbit_vhost.erl index 297fa56fe3..4fe5c169fb 100644 --- a/src/rabbit_vhost.erl +++ b/src/rabbit_vhost.erl @@ -70,6 +70,7 @@ add(VHostPath) -> {<<"amq.rabbitmq.trace">>, topic}]], ok end), + rabbit_event:notify(vhost_created, info(VHostPath)), R. delete(VHostPath) -> @@ -87,6 +88,7 @@ delete(VHostPath) -> with(VHostPath, fun () -> ok = internal_delete(VHostPath) end)), + ok = rabbit_event:notify(vhost_deleted, [{name, VHostPath}]), R. internal_delete(VHostPath) -> |
