Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
juga0 committed Sep 10, 2017
1 parent 0179b83 commit c8041f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dhcpcanon/setnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def set_net(lease):
try:
index = ipr.link_lookup(ifname=lease.interface)[0]
except IndexError as e:
logger.error('Interface %s not found, can not set IP.', lease.interface)
logger.error('Interface %s not found, can not set IP.',
lease.interface)
exit(1)
try:
ipr.addr('add', index, address=lease.address,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_dhcpcapfsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_preinit_bound(self):
conf.L2socket = DummySocket
dhcpcanon = DHCPCAPFSM(client_mac='00:01:02:03:04:05', iface='eth0',
xid=900000000,
# scriptfile='/sbin/dhcpcanon-script',
# scriptfile='/sbin/dhcpcanon-script',
delay_selecting=1, timeout_select=1,
ll=DummySocket)
assert dhcpcanon.dict_self() == fsm_preinit
Expand Down Expand Up @@ -145,7 +145,7 @@ def test_preinit_bound(self):
logger.debug('============')
logger.debug('State %s', STATES2NAMES[dhcpcanon.current_state])
# fsm_bound['script'].script_init(fsm_bound['client'].lease,
# 'BOUND')
# 'BOUND')
try:
dhcpcanon.next()
except Automaton.Singlestep as err:
Expand Down

0 comments on commit c8041f4

Please sign in to comment.