summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2018-04-25 00:11:11 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-25 00:11:11 +0000
commit71755ec8f3e124d2ea13100122a0947d79fd2993 (patch)
tree2fb016254cb75ec4d0e3132d567dfdb146fc8849
parentf7c6546100bea244dfa0f59d5a79a34a473223ca (diff)
parent3704fdda53dc32f4fdf812cbcd32ca4a64ca3ef5 (diff)
Merge "Fix some minor issues in codebase"
-rw-r--r--newton/newton/registration/views/registration.py1
-rw-r--r--ocata/ocata/registration/views/registration.py2
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'