Ticket #1055: sfa-2.0-9-patch-12.diff

File sfa-2.0-9-patch-12.diff, 655 bytes (added by xyang@maxgigapop.net, 7 years ago)
  • /usr/lib/python2.6/site-packages/sfa/managers/

    old new class AggregateManagerMax (AggregateMana 
    182182        resources = []
    183183        urn = hrn_to_urn(slice_xrn, 'sliver')
    184184        plc_slice = re.search("Slice Status => ([^\n]+)", text)
    185         if plc_slice.group(1) != 'NONE':
     185        if plc_slice and plc_slice.group and plc_slice.group(1) != 'NONE':
    186186            res = {}
    187187            res['geni_urn'] = urn + '_plc_slice'
    188188            res['geni_error'] = ''