Fix some minor issues in codebase 73/44273/1
authorShashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Mon, 23 Apr 2018 23:37:00 +0000 (16:37 -0700)
committerShashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Mon, 23 Apr 2018 23:39:16 +0000 (16:39 -0700)
Fixes some minor issues found when writing CSIT tests.

Change-Id: I44d2bbc3a661b44824cc98eaf7588a74bac02f8e
Issue-ID: MULTICLOUD-214
Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
newton/newton/registration/views/registration.py
ocata/ocata/registration/views/registration.py

index cc97e04..9f28cdf 100644 (file)
@@ -15,6 +15,7 @@
 import logging
 import json
 import uuid
+import traceback
 
 from django.conf import settings
 from keystoneauth1.exceptions import HttpError
index 4dd8767..b4b73d7 100644 (file)
@@ -319,7 +319,7 @@ class Registry(newton_registration.Registry):
 
         cloud_extra_info_str = viminfo.get('cloud_extra_info')
         if cloud_extra_info_str :
-            cloud_dpdk_info = cloud_extra_info.get("ovsDpdk")
+            cloud_dpdk_info = cloud_extra_info_str.get("ovsDpdk")
             if cloud_dpdk_info :
                 ovsdpdk_capability['hpaCapabilityID'] = str(feature_uuid)
                 ovsdpdk_capability['hpaFeature'] = 'ovsDpdk'