diff options
author | Yun Huang <yun.huang@windriver.com> | 2018-04-25 15:16:29 +0800 |
---|---|---|
committer | Yun Huang <yun.huang@windriver.com> | 2018-04-25 15:16:29 +0800 |
commit | 1a034d52ee2cdcd938b43e13958b6361da894fa7 (patch) | |
tree | b04da1f1524b5ef5b2d92a1963fc4066c90a7c85 /share | |
parent | b6a8ab058129069ddcf812f56b6c2877a9145c33 (diff) |
Fix HPA registration bug for windriver
Change-Id: Iae4341c96bb98c6b87649b736826ce527fc8fef3
Issue-ID: MULTICLOUD-206
Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'share')
-rw-r--r-- | share/newton_base/registration/registration.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/newton_base/registration/registration.py b/share/newton_base/registration/registration.py index e5a84501..7513fd79 100644 --- a/share/newton_base/registration/registration.py +++ b/share/newton_base/registration/registration.py @@ -151,10 +151,10 @@ class Registry(APIView): 'flavor-disabled': flavor['OS-FLV-DISABLED:disabled'], } - if flavor.get('link') and len(flavor['link']) > 0: - flavor_info['flavor-selflink'] = flavor['link'][0]['href'] or 'http://0.0.0.0', + if flavor.get('links') and len(flavor['links']) > 0: + flavor_info['flavor-selflink'] = flavor['links'][0]['href'] or 'http://0.0.0.0' else: - flavor_info['flavor-selflink'] = 'http://0.0.0.0', + flavor_info['flavor-selflink'] = 'http://0.0.0.0' self._update_resoure( cloud_owner, cloud_region_id, flavor['id'], @@ -623,8 +623,8 @@ class Registry(APIView): return def post(self, request, vimid=""): - self._logger.debug("Registration--post::data> %s" % request.data) - self._logger.debug("Registration--post::vimid > %s" % vimid) + self._logger.info("registration with vimid: %s" % vimid) + self._logger.debug("with data: %s" % request.data) try: # populate proxy identity url |