~billy-olsen/charm-helpers/stable-fix-internal-int

Viewing all changes in revision 785.

  • Committer: billy.olsen at canonical
  • Date: 2017-10-04 00:41:37 UTC
  • Revision ID: billy.olsen@canonical.com-20171004004137-sf04d32ogff0pmte
Fix mismatch between 'internal' and 'int' in DNSHA

DNSHA keys off the string in configuration variables os-*-hostname.
os-internal-hostname is the name of the config variable. However,
resolve_address uses a long standing constant ADDRESS_MAP that refers
to this as 'int'.

This change handles this and hands resolve_address what it expects.
Also, use a clearer variable name for endpoint_type.

* Fix to unit test for 'int' vs 'internal'

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: