Skip to content

Commit

Permalink
[raspbian] Fix flake8 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ritwick DSouza committed Aug 29, 2017
1 parent eade0a9 commit 6247cd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netjsonconfig/backends/raspbian/converters/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def _get_address(self, interface):
if address.get('family') == 'ipv4':

address_mask = str(address.get('address')) + '/' + str(address.get('mask'))
address['netmask'] = IPv4Interface(six.text_type(address_mask)).with_netmask.split('/')[1]
netmask = IPv4Interface(six.text_type(address_mask))
address['netmask'] = netmask.with_netmask.split('/')[1]
del address['mask']
if address.get('family') == 'ipv6':
address['netmask'] = address['mask']
Expand Down

0 comments on commit 6247cd7

Please sign in to comment.