Changeset ab847bc for fedd/federation/emulab_access.py
- Timestamp:
- Apr 28, 2010 4:09:53 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 12658df
- Parents:
- 05fceef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_access.py
r05fceef rab847bc 4 4 import stat # for chmod constants 5 5 import re 6 import random 6 7 import string 7 8 import copy … … 1458 1459 copy_file(f, "%s/%s" % (softdir, base)) 1459 1460 1461 ename = None 1462 pubkey_base = None 1463 secretkey_base = None 1460 1464 for a in attrs: 1461 1465 if a['attribute'] in configs: … … 1474 1478 if a['attribute'] == 'experiment_name': 1475 1479 ename = a['value'] 1480 1481 if not ename: 1482 ename = "" 1483 for i in range(0,5): 1484 ename += random.choice(string.ascii_letters) 1485 self.log.warn("No experiment name: picked one randomly: %s" \ 1486 % ename) 1487 1488 if not pubkey_base: 1489 raise service_error(service_error.req, 1490 "No public key attribute") 1491 1492 if not secretkey_base: 1493 raise service_error(service_error.req, 1494 "No secret key attribute") 1476 1495 1477 1496 # If the userconf service was imported, collect the configuration
Note: See TracChangeset
for help on using the changeset viewer.