Ignore:
Timestamp:
Dec 9, 2009 3:53:14 PM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
c122b0c
Parents:
bde2217
Message:

getting the emulab structure out of the access commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    rbde2217 r4afcfc4  
    498498        msg = {
    499499                'allocID': alloc_id,
    500                 'emulab': {
    501                     'domain': self.domain,
    502                     'boss': self.boss,
    503                     'ops': self.ops,
    504                     'fileServer': self.fileserver,
    505                     'eventServer': self.eventserver,
    506                     'project': ap['project']
    507                 },
     500                'fedAttr': [
     501                    { 'attribute': 'domain', 'value': self.domain } ,
     502                    { 'attribute': 'project', 'value':
     503                        ap['project'].get('name', {}).get('localname', "???") },
     504                ]
    508505            }
    509506        if len(self.attrs) > 0:
    510             msg['emulab']['fedAttr'] = \
     507            msg['fedAttr'].extend(
    511508                [ { 'attribute': x, 'value' : y } \
    512                         for x,y in self.attrs.iteritems()]
     509                        for x,y in self.attrs.iteritems()])
    513510        return msg
    514511
Note: See TracChangeset for help on using the changeset viewer.