Skip to content

Commit 7191f23

Browse files
committed
[qa] Fix flake8 errors
Signed-off-by: Konrad Kreitmair <kkreitmair@tdt.de>
1 parent c31b3b7 commit 7191f23

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

netjsonconfig/backends/openwrt/converters/ddns.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ class Ddns(OpenWrtConverter):
1313
def to_intermediate_loop(self, block, result, index=None):
1414
if block:
1515
provider_list = self.__intermediate_providers(block.pop('providers', {}))
16-
block.update(
17-
{'.type': 'ddns', '.name': block.pop('id', 'global'),}
18-
)
16+
block.update({'.type': 'ddns', '.name': block.pop('id', 'global')})
1917
result.setdefault('ddns', [])
2018
result['ddns'] = [self.sorted_dict(block)] + provider_list
2119
return result

netjsonconfig/backends/openwrt/schema.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@
476476
"ip_source": {
477477
"type": "string",
478478
"title": "ip_source",
479-
"description": "specifies the source to detect the local IP: 'network' uses "
480-
"'ip_network', 'web' uses 'ip_url', 'interface' uses "
479+
"description": "specifies the source to detect the local IP: "
480+
"'network' uses 'ip_network', 'web' uses 'ip_url', 'interface' uses "
481481
"'ip_interface', 'script' uses 'ip_script'",
482482
"enum": ["network", "web", "interface", "script"],
483483
"default": "network",
@@ -492,7 +492,8 @@
492492
"domain": {
493493
"type": "string",
494494
"title": "domain",
495-
"description": "the DNS name to update; this property can also be used for "
495+
"description": "the DNS name to update;"
496+
" this property can also be used for "
496497
"special multihost update configurations supported by"
497498
" some providers",
498499
"propertyOrder": 5,
@@ -518,7 +519,8 @@
518519
"update_url": {
519520
"type": "string",
520521
"title": "update_url",
521-
"description": "url to the DDNS service to use if 'service_name' is not set",
522+
"description": "url to the DDNS service to use"
523+
" if 'service_name' is not set",
522524
"propertyOrder": 9,
523525
},
524526
"update_script": {
@@ -530,8 +532,8 @@
530532
"ip_network": {
531533
"type": "string",
532534
"title": "ip_network",
533-
"description": "network from /etc/config/network to use for detecting the IP "
534-
"if 'ip_source' is set to 'network'",
535+
"description": "network from /etc/config/network to use"
536+
" for detecting the IP if 'ip_source' is set to 'network'",
535537
"default": "wan",
536538
"propertyOrder": 11,
537539
},
@@ -545,15 +547,15 @@
545547
"ip_interface": {
546548
"type": "string",
547549
"title": "ip_interface",
548-
"description": "local interface to use for detecting the IP if 'ip_source' is"
549-
" set to 'interface'",
550+
"description": "local interface to use"
551+
" for detecting the IP if 'ip_source' is set to 'interface'",
550552
"propertyOrder": 13,
551553
},
552554
"ip_script": {
553555
"type": "string",
554556
"title": "ip_script",
555-
"description": "script to use for detecting the IP if 'ip_source' is set to "
556-
"'script'",
557+
"description": "script to use for detecting the IP"
558+
" if 'ip_source' is set to 'script'",
557559
"propertyOrder": 14,
558560
},
559561
"use_syslog": {

0 commit comments

Comments
 (0)