The order that __get_options() and __get_implementations() are called in shouldn't matter.

This commit is contained in:
Ferdi Franceschini
2014-07-08 18:36:15 +10:00
parent cc6634abe9
commit dee4b0430e

View File

@ -269,7 +269,7 @@ class InstConfigData(object):
self.opt_dict[sect]['permanent'] = permanent
self.opt_dict[sect]['imptype'] = imptype
if stateval == True:
if selected_imp == 'none' or (selected_imp in self.imp2opt_dict):
if selected_imp == 'none' or (selected_imp in self.imp2opt_dict) and self.imp2opt_dict[selected_imp] != 'none':
self.opt_dict[sect]['enabled'] = False
self.opt_dict[sect]['selected_imp'] = 'none'
else: