Commit d3c7855d authored by Corey Moyer's avatar Corey Moyer

Fix inconsistent use of tabs and spaces in connman.py

parent 07513ee9
......@@ -697,12 +697,12 @@ class connman:
# IPTABLES
nf_values = [self.oe._(32397), self.oe._(32398), self.oe._(32399)]
nf_custom_rules = [self.NF_CUSTOM_PATH + "rules.v4" , self.NF_CUSTOM_PATH + "rules.v6"]
for custom_rule in nf_custom_rules:
for custom_rule in nf_custom_rules:
if os.path.exists(custom_rule):
nf_values.append(self.oe._(32396))
nf_values.append(self.oe._(32396))
break
self.struct['advanced']['settings']['netfilter']['values'] = nf_values
if self.oe.get_service_state('iptables') == '1':
if self.oe.get_service_state('iptables') == '1':
nf_option = self.oe.get_service_option('iptables', 'RULES', 'home')
if nf_option == "custom":
nf_option_str = self.oe._(32396)
......@@ -1170,7 +1170,7 @@ class connman:
options['RULES'] = "home"
elif self.struct['advanced']['settings']['netfilter']['value'] == self.oe._(32399):
options['RULES'] = "public"
else:
else:
state = 0
self.oe.set_service('iptables', options, state)
self.oe.set_busy(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment