Skip to content

Commit ddb356d

Browse files
author
Ritwick DSouza
committed
[raspbian] Fix isort and flake8 errors
1 parent 0c2a452 commit ddb356d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

netjsonconfig/backends/raspbian/converters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ class Ntp(BaseConverter):
154154
netjson_key = 'ntp'
155155

156156
def to_intermediate(self):
157-
result = []
157+
result = []
158158
ntp = get_copy(self.netjson, self.netjson_key)
159-
if ntp.get('enabled', False) == True:
159+
if ntp.get('enabled', False):
160160
for server in ntp.get('server'):
161161
result.append(server)
162162
return (('ntp', result),)

tests/raspbian/test_system.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from netjsonconfig import Raspbian
44
from netjsonconfig.utils import _TabsMixin
55

6+
67
class TestSystemRender(unittest.TestCase, _TabsMixin):
78

89
def test_ntp(self):
@@ -25,3 +26,4 @@ def test_ntp(self):
2526
server 2.openwrt.pool.ntp.org
2627
server 3.openwrt.pool.ntp.org
2728
'''
29+
self.assertEqual(o.render(), expected)

0 commit comments

Comments
 (0)