Changeset 7de1537
- Timestamp:
- Dec 15, 2010 11:37:43 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 6635dd5
- Parents:
- f938d66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
rf938d66 r7de1537 151 151 accessdb_file = config.get("experiment_control", "accessdb") 152 152 153 self.ssh_pubkey_file = config.get("experiment_control",154 "ssh_pubkey_file")155 self.ssh_privkey_file = config.get("experiment_control",156 "ssh_privkey_file")157 153 dt = config.get("experiment_control", "direct_transit") 158 154 self.auth_type = config.get('experiment_control', 'auth_type') \ … … 209 205 raise service_error(service_error.internal, 210 206 "Unknown auth_type: %s" % self.auth_type) 211 212 213 if self.ssh_pubkey_file:214 try:215 f = open(self.ssh_pubkey_file, 'r')216 self.ssh_pubkey = f.read()217 f.close()218 except EnvironmentError:219 raise service_error(service_error.internal,220 "Cannot read sshpubkey")221 else:222 raise service_error(service_error.internal,223 "No SSH public key file?")224 225 if not self.ssh_privkey_file:226 raise service_error(service_error.internal,227 "No SSH public key file?")228 229 207 230 208 if mapdb_file:
Note: See TracChangeset
for help on using the changeset viewer.