- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
rd0912be r1ec5d4a 1247 1247 "More than one project export is not supported") 1248 1248 1249 def add_services(svcs, type, slist , keys):1249 def add_services(svcs, type, slist): 1250 1250 """ 1251 Add the given services to slist. type is import or export. Also 1252 add a mapping entry from the assigned id to the original service 1253 record. 1251 Add the given services to slist. type is import or export. 1254 1252 """ 1255 1253 for i, s in enumerate(svcs): 1256 1254 idx = '%s%d' % (type, i) 1257 keys[idx] = s1258 1255 sr = {'id': idx, 'name': s.name, 'visibility': type } 1259 1256 if s.params: … … 1297 1294 if import_svcs or export_svcs: 1298 1295 slist = [] 1299 add_services(import_svcs, 'import', slist , e_keys)1300 add_services(export_svcs, 'export', slist , e_keys)1296 add_services(import_svcs, 'import', slist) 1297 add_services(export_svcs, 'export', slist) 1301 1298 req['service'] = slist 1302 1299
Note: See TracChangeset
for help on using the changeset viewer.