Skip to content

Commit dd344b3

Browse files
committed
[airos] make assignment explicit
1 parent c034caf commit dd344b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

netjsonconfig/backends/airos/converters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ def to_intermediate(self):
320320
temp['role'] = self.type_to_role(interface['type'])
321321
# handle explicit address policy
322322
if addr['proto'] == 'dhcp':
323-
temp['autoip'] = {}
324-
temp['autoip']['status'] = 'enabled'
323+
temp['autoip'] = {'status': 'enabled'}
325324
else:
326325
ip_and_mask = '%s/%d' % (addr['address'], addr['mask'])
327326
network = ip_interface(ip_and_mask)

0 commit comments

Comments
 (0)