more graceful log message when GetSlivers() API called failed
[nodemanager.git] / plugins / vsys.py
index 05b87cd..f1abfd9 100644 (file)
@@ -15,6 +15,11 @@ def start(options, conf):
 
 def GetSlivers(data, config=None, plc=None):
     """For each sliver with the vsys attribute, set the script ACL, create the vsys directory in the slice, and restart vsys."""
+
+    if 'slivers' not in data:
+        logger.log("vsys: getslivers data lack's sliver information. IGNORING!")
+        return
+
     # Touch ACLs and create dict of available
     scripts = {}
     for script in touchAcls(): scripts[script] = []