Browse Source

[2254] fix 'config remove Boss' crash

now shows a (admittedly rather cryptic) error
Jelte Jansen 12 years ago
parent
commit
055d0ff127
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/python/isc/config/ccsession.py

+ 1 - 1
src/lib/python/isc/config/ccsession.py

@@ -653,7 +653,7 @@ class UIModuleCCSession(MultiConfigData):
         # for type any, we determine the 'type' by what value is set
         # (which would be either list or dict)
         cur_value, _ = self.get_value(identifier)
-        type_any = module_spec['item_type'] == 'any'
+        type_any = isc.config.config_data.spec_part_is_any(module_spec)
 
         # there's two forms of 'remove from list'; the remove-value-from-list
         # form, and the 'remove-by-index' form. We can recognize the second