1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes: #5221 - Fix bulk component creation over multiple VMs

This commit is contained in:
Daniel Sheppard
2020-10-08 12:39:20 -05:00
parent 39e4ab164e
commit eadecf3eda
2 changed files with 2 additions and 1 deletions

View File

@ -1352,7 +1352,7 @@ class BulkComponentCreateView(GetReturnURLMixin, ObjectPermissionRequiredMixin,
for obj in data['pk']:
names = data['name_pattern']
labels = data['label_pattern']
labels = data['label_pattern'] if 'label_pattern' in data else None
for i, name in enumerate(names):
label = labels[i] if labels else None