diff options
| author | Paul Goins <paul.goins@canonical.com> | 2019-09-20 07:29:05 +0000 |
|---|---|---|
| committer | Canonical IS Mergebot <canonical-is-mergebot@canonical.com> | 2019-09-20 07:29:05 +0000 |
| commit | 06175a585ae5bddec54792325b08f83d0a005a01 (patch) | |
| tree | 7c5098d01dbc1d2d481a72842d3959d2c0747f6d | |
| parent | 3c1439fe6ce619d6dca082f8aadcdf7d36480a99 (diff) | |
| parent | 15dd60158d33c1b7797db8b8957a37a5ec552a78 (diff) | |
Share MongoDB version with client
Reviewed-on: https://code.launchpad.net/~vultaire/mongodb-charm/+git/mongodb-charm/+merge/373023 Reviewed-by: Jeremy Lounder <jeremy.lounder@canonical.com> Reviewed-by: Giuseppe Petralia <giuseppe.petralia@canonical.com>
| -rwxr-xr-x | hooks/hooks.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hooks/hooks.py b/hooks/hooks.py index 25e1d69..3c3a493 100755 --- a/hooks/hooks.py +++ b/hooks/hooks.py @@ -1148,6 +1148,7 @@ def database_relation_joined(): relation_data = {'hostname': my_hostname, 'port': my_port, 'type': 'database', + 'version': get_mongod_version(), } if len(peer_units('replica-set')) > 1: |
