Changeset 6280b1f
- Timestamp:
- Mar 4, 2010 3:18:09 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 289ff7e
- Parents:
- f81aba7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_access.py
rf81aba7 r6280b1f 74 74 self.ssh_privkey_file = config.get("access","ssh_privkey_file") 75 75 self.ssh_pubkey_file = config.get("access","ssh_pubkey_file") 76 self.ssh_port = config.get("access","ssh_port") or "22" 76 77 self.create_debug = config.getboolean("access", "create_debug") 77 78 self.cleanup = not config.getboolean("access", "leave_tmpfiles") … … 1046 1047 s.get('visibility','') == 'import': 1047 1048 client_service_out[s['name']](f, s) 1048 # Does seer need this? 1049 #print >>f, "ExperimentID: %s/%s" % (mproj, meid)1049 # Does seer need this? (evidently so) 1050 print >>f, "ExperimentID: %s/%s" % (mproj, meid) 1050 1051 f.close() 1051 1052 except IOError, e: … … 1212 1213 if p.get('type', '') == 'output']: 1213 1214 1214 if p.get('name', '') != 'peer': 1215 if p.get('name', '') == 'peer': 1216 k = p.get('key', None) 1217 surl = p.get('store', None) 1218 if surl and k and k.index('/') != -1: 1219 value = "%s.%s.%s%s" % \ 1220 (k[k.index('/')+1:], ename, proj, self.domain) 1221 req = { 'name': k, 'value': value } 1222 self.call_SetValue(surl, req, cf) 1223 else: 1224 self.log.error("Bad export request: %s" % p) 1225 elif p.get('name', '') == 'ssh_port': 1226 k = p.get('key', None) 1227 surl = p.get('store', None) 1228 if surl and k: 1229 req = { 'name': k, 'value': self.ssh_port } 1230 self.call_SetValue(surl, req, cf) 1231 else: 1232 self.log.error("Bad export request: %s" % p) 1233 else: 1215 1234 self.log.error("Unknown export parameter: %s" % \ 1216 1235 p.get('name')) 1217 1236 continue 1218 1219 k = p.get('key', None)1220 surl = p.get('store', None)1221 if surl and k and k.index('/') != -1:1222 value = "%s.%s.%s%s" % \1223 (k[k.index('/')+1:], ename, proj, self.domain)1224 req = { 'name': k, 'value': value }1225 self.call_SetValue(surl, req, cf)1226 else:1227 self.log.error("Bad export request: %s" % p)1228 1237 1229 1238 def import_store_info(self, cf, connInfo):
Note: See TracChangeset
for help on using the changeset viewer.