bites you in the ass. every time.
This commit is contained in:
parent
87dfe6a543
commit
7b48e6813c
@ -25,7 +25,7 @@ class RAConf(object):
|
|||||||
for k in ('name', 'dir'):
|
for k in ('name', 'dir'):
|
||||||
n = 'tpl_{0}'.format(k)
|
n = 'tpl_{0}'.format(k)
|
||||||
d = 'def_tpl_{0}'.format(k)
|
d = 'def_tpl_{0}'.format(k)
|
||||||
v = locals()[k]
|
v = locals()[n]
|
||||||
if not v:
|
if not v:
|
||||||
setattr(self, n, getattr(self, d))
|
setattr(self, n, getattr(self, d))
|
||||||
else:
|
else:
|
||||||
|
@ -101,7 +101,7 @@ class Assignment(object):
|
|||||||
family = socket.AF_INET6,
|
family = socket.AF_INET6,
|
||||||
scope = 253)[0]['attrs']
|
scope = 253)[0]['attrs']
|
||||||
addrs = dict(ll)['IFA_ADDRESS']
|
addrs = dict(ll)['IFA_ADDRESS']
|
||||||
logger.debug('Link-Local address for {0}: {1}'.format(addrs, addrs))
|
logger.debug('Link-Local address for {0}: {1}'.format(self.iface, addrs))
|
||||||
if isinstance(addrs, (list, tuple)):
|
if isinstance(addrs, (list, tuple)):
|
||||||
addr = addrs[0]
|
addr = addrs[0]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user