~gnuoy/charms/trusty/glance/next-haproxy-always

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/network/ip.py

  • Committer: Edward Hope-Morley
  • Date: 2014-11-12 11:42:51 UTC
  • Revision ID: edward.hope-morley@canonical.com-20141112114251-4s1wyr6c8i31q709
[hopem] synced charm-helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
from charmhelpers.core.hookenv import unit_get
9
9
from charmhelpers.fetch import apt_install
10
10
from charmhelpers.core.hookenv import (
11
 
    WARNING,
12
11
    ERROR,
13
12
    log
14
13
)
175
174
    if is_ipv6(address):
176
175
        address = "[%s]" % address
177
176
    else:
178
 
        log("Not a valid ipv6 address: %s" % address, level=WARNING)
179
177
        address = None
180
178
 
181
179
    return address