X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fiotlab%2Fiotlabslices.py;fp=sfa%2Fiotlab%2Fiotlabslices.py;h=3b4258fb1aaafb94ca5212b66438ef10b7e349be;hb=4f9d407d0ce159bdb359e9ab500bf88b5f586e62;hp=9449627c5294dac110aef85d53edc9a46448a2fd;hpb=69539c59d82c4ff3f7ae299811e056f1f280e710;p=sfa.git diff --git a/sfa/iotlab/iotlabslices.py b/sfa/iotlab/iotlabslices.py index 9449627c..3b4258fb 100644 --- a/sfa/iotlab/iotlabslices.py +++ b/sfa/iotlab/iotlabslices.py @@ -403,7 +403,7 @@ class IotlabSlices: return sfa_slice - def verify_persons(self, slice_hrn, slice_record, users, options={}): + def verify_persons(self, slice_hrn, slice_record, users, options=None): """Ensures the users in users list exist and are enabled in LDAP. Adds person if needed (AddPerson). @@ -429,6 +429,7 @@ class IotlabSlices: """ + if options is None: options={} logger.debug("IOTLABSLICES \tverify_persons \tslice_hrn %s \ \t slice_record %s\r\n users %s \t " % (slice_hrn, slice_record, users)) @@ -639,10 +640,11 @@ class IotlabSlices: return added_persons - def verify_keys(self, persons, users, peer, options={}): + def verify_keys(self, persons, users, peer, options=None): """ .. warning:: unused """ + if options is None: options={} # existing keys key_ids = [] for person in persons: