diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py index 9dcf2726b55ad84f6577d64491da05e85f581602..2b968fe575e61ab05917d2a36b2d40ed2980ca40 100644 --- a/inventory_provider/routes/poller.py +++ b/inventory_provider/routes/poller.py @@ -498,7 +498,8 @@ def _get_dashboard_data(ifc, possible_names): def _get_l2_customer_names(description): info = description.upper().split('#')[0].split('|')[0].split()[1:] yield info[1] - if info[0] in ['CUSTOMER', 'RE_INTERCONNECT'] and info[2]: + if info[0] in ['CUSTOMER', 'RE_INTERCONNECT'] \ + and len(info) > 2 and info[2]: yield info[2] def _get_customer_name(description):