summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/infrastructure/resource_management/racks/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/dashboards/infrastructure/resource_management/racks/forms.py')
-rw-r--r--openstack_dashboard/dashboards/infrastructure/resource_management/racks/forms.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/openstack_dashboard/dashboards/infrastructure/resource_management/racks/forms.py b/openstack_dashboard/dashboards/infrastructure/resource_management/racks/forms.py
index 3b3ce324..c77d2dd3 100644
--- a/openstack_dashboard/dashboards/infrastructure/resource_management/racks/forms.py
+++ b/openstack_dashboard/dashboards/infrastructure/resource_management/racks/forms.py
@@ -67,10 +67,11 @@ class UploadRack(forms.SelfHandlingForm):
api.tuskar.ResourceClass.list(request))
for rack in racks:
try:
- r = api.tuskar.Rack.create(request, rack.name,
- rclass_ids[rack.resource_class], rack.region,
- rack.subnet)
- api.tuskar.Rack.register_nodes(r, rack.nodes)
+ api.tuskar.Rack.create(request, rack.name,
+ rclass_ids[rack.resource_class],
+ rack.region, rack.subnet)
+ # FIXME: will have to handle nodes once proper attributes
+ # for nodes are added
successes.append(rack.name)
except:
LOG.exception("Exception in processing rack CSV file.")