Fix overrides to clean out when none present.
[nodemanager.git] / nm.py
diff --git a/nm.py b/nm.py
index 3f8edbc..c262906 100755 (executable)
--- a/nm.py
+++ b/nm.py
@@ -85,8 +85,7 @@ def getPLCDefaults(data, config):
             if len(attr_dict):
                 logger.verbose("Found default slice overrides.\n %s" % attr_dict)
                 config.OVERRIDES = attr_dict
-            return 
-    if 'OVERRIDES' not in dir(config): del config.OVERRIDES
+        elif 'OVERRIDES' in dir(config): del config.OVERRIDES
 
 
 def run():