Owned by James Hebden
Get this repository:
git clone https://git.launchpad.net/~ec0/charm-telegraf
Only James Hebden can upload to this repository. If you are James Hebden please log in for upload directions.


Name Last Modified Last Commit
fix-relations-with-network-spaces 2017-11-22 14:03:45 UTC 2017-11-22
Fixed get_remote_unit_name with network spaces

Author: James Hebden
Author Date: 2017-11-22 14:03:45 UTC

Fixed get_remote_unit_name with network spaces

When relating units with telegraf, the get_remote_unit_name function is
verifies the remote unit name by checking that the private-ip address in
the relation data matches the private IP address of the unit.

This breaks when using a network space with a unit IP address that is
not the juju-calculated private-ip address for the unit, which is kind
of the point of being able to specify an alternate network space.

This commit fixes this when using network spaces by using the unit's IP
address in the provided network space if available, falling back to the
unit's private address if a space is not configured/available (for
example, in juju 1.25 environments)

11 of 1 result
This repository contains Public information 
Everyone can see this information.