Skip to content

Commit

Permalink
[qa] Fix flake8 errors
Browse files Browse the repository at this point in the history
Signed-off-by: Konrad Kreitmair <[email protected]>
  • Loading branch information
kkreitmair committed Aug 7, 2020
1 parent c31b3b7 commit 7191f23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 1 addition & 3 deletions netjsonconfig/backends/openwrt/converters/ddns.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ class Ddns(OpenWrtConverter):
def to_intermediate_loop(self, block, result, index=None):
if block:
provider_list = self.__intermediate_providers(block.pop('providers', {}))
block.update(
{'.type': 'ddns', '.name': block.pop('id', 'global'),}
)
block.update({'.type': 'ddns', '.name': block.pop('id', 'global')})
result.setdefault('ddns', [])
result['ddns'] = [self.sorted_dict(block)] + provider_list
return result
Expand Down
22 changes: 12 additions & 10 deletions netjsonconfig/backends/openwrt/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@
"ip_source": {
"type": "string",
"title": "ip_source",
"description": "specifies the source to detect the local IP: 'network' uses "
"'ip_network', 'web' uses 'ip_url', 'interface' uses "
"description": "specifies the source to detect the local IP: "
"'network' uses 'ip_network', 'web' uses 'ip_url', 'interface' uses "
"'ip_interface', 'script' uses 'ip_script'",
"enum": ["network", "web", "interface", "script"],
"default": "network",
Expand All @@ -492,7 +492,8 @@
"domain": {
"type": "string",
"title": "domain",
"description": "the DNS name to update; this property can also be used for "
"description": "the DNS name to update;"
" this property can also be used for "
"special multihost update configurations supported by"
" some providers",
"propertyOrder": 5,
Expand All @@ -518,7 +519,8 @@
"update_url": {
"type": "string",
"title": "update_url",
"description": "url to the DDNS service to use if 'service_name' is not set",
"description": "url to the DDNS service to use"
" if 'service_name' is not set",
"propertyOrder": 9,
},
"update_script": {
Expand All @@ -530,8 +532,8 @@
"ip_network": {
"type": "string",
"title": "ip_network",
"description": "network from /etc/config/network to use for detecting the IP "
"if 'ip_source' is set to 'network'",
"description": "network from /etc/config/network to use"
" for detecting the IP if 'ip_source' is set to 'network'",
"default": "wan",
"propertyOrder": 11,
},
Expand All @@ -545,15 +547,15 @@
"ip_interface": {
"type": "string",
"title": "ip_interface",
"description": "local interface to use for detecting the IP if 'ip_source' is"
" set to 'interface'",
"description": "local interface to use"
" for detecting the IP if 'ip_source' is set to 'interface'",
"propertyOrder": 13,
},
"ip_script": {
"type": "string",
"title": "ip_script",
"description": "script to use for detecting the IP if 'ip_source' is set to "
"'script'",
"description": "script to use for detecting the IP"
" if 'ip_source' is set to 'script'",
"propertyOrder": 14,
},
"use_syslog": {
Expand Down

0 comments on commit 7191f23

Please sign in to comment.