diff options
Diffstat (limited to 'cli/src/cli-cmd-peer.c')
-rw-r--r-- | cli/src/cli-cmd-peer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-peer.c b/cli/src/cli-cmd-peer.c index d6b4ab147a4..36c328a7c12 100644 --- a/cli/src/cli-cmd-peer.c +++ b/cli/src/cli-cmd-peer.c @@ -90,6 +90,12 @@ out: CLI_STACK_DESTROY (frame); +#if (USE_EVENTS) + if (ret == 0) { + gf_event (EVENT_PEER_ATTACH, "host=%s", (char *)words[2]); + } +#endif + return ret; } @@ -160,6 +166,12 @@ out: CLI_STACK_DESTROY (frame); +#if (USE_EVENTS) + if (ret == 0) { + gf_event (EVENT_PEER_DETACH, "host=%s", (char *)words[2]); + } +#endif + return ret; } |