~freyes/+junk/hacluster-debug-on

« back to all changes in this revision

Viewing changes to hooks/hacluster.py

  • Committer: James Page
  • Date: 2014-04-11 11:46:34 UTC
  • Revision ID: james.page@canonical.com-20140411114634-x1bvwvgfltyumvth
Fixup unicode string handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
def get_network_address(iface):
74
74
    if iface:
 
75
        iface = str(iface)
75
76
        network = "{}/{}".format(get_iface_ipaddr(iface),
76
77
                                 get_netmask_cidr(get_iface_netmask(iface)))
77
78
        ip = IPNetwork(network)