fixes in GetSliceSshKeys
[plcapi.git] / PLC / Methods / GetPersons.py
index 6302765..9439420 100644 (file)
@@ -52,6 +52,11 @@ class GetPersons(Method):
             if not valid_person_ids:
                 return []
 
+            # this may look suspicious; what if person_filter is not None ?
+            # turns out the results are getting filtered again below, so we're safe
+            # although this part of the code does not always trigger, it's probably 
+            # a sensible performance enhancement for all the times 
+            # when GetPersons() gets called without an argument
             if person_filter is None:
                 person_filter = valid_person_ids