diff options
author | Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> | 2018-04-23 16:37:00 -0700 |
---|---|---|
committer | Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> | 2018-04-23 16:39:16 -0700 |
commit | 3704fdda53dc32f4fdf812cbcd32ca4a64ca3ef5 (patch) | |
tree | 3501f26145f373db4ca697366247f54650e5f749 | |
parent | 2eab5f81270ad90ff5d30d024bf08e490a5cb977 (diff) |
Fix some minor issues in codebase
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>
-rw-r--r-- | newton/newton/registration/views/registration.py | 1 | ||||
-rw-r--r-- | ocata/ocata/registration/views/registration.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/newton/newton/registration/views/registration.py b/newton/newton/registration/views/registration.py index cc97e048..9f28cdff 100644 --- a/newton/newton/registration/views/registration.py +++ b/newton/newton/registration/views/registration.py @@ -15,6 +15,7 @@ import logging import json import uuid +import traceback from django.conf import settings from keystoneauth1.exceptions import HttpError diff --git a/ocata/ocata/registration/views/registration.py b/ocata/ocata/registration/views/registration.py index 4dd87675..b4b73d71 100644 --- a/ocata/ocata/registration/views/registration.py +++ b/ocata/ocata/registration/views/registration.py @@ -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' |