Fix python3 migration issue in solver 83/105683/1
authorkrishnaa96 <krishna.moorthy6@wipro.com>
Thu, 9 Apr 2020 14:26:26 +0000 (19:56 +0530)
committerkrishnaa96 <krishna.moorthy6@wipro.com>
Thu, 9 Apr 2020 14:27:59 +0000 (19:57 +0530)
Issue-ID: OPTFRA-728
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: I3b2640acef68fe060e160c939c5b07ef617f89cf

conductor/conductor/solver/service.py

index 7643a70..3d0d8fa 100644 (file)
@@ -545,7 +545,7 @@ class SolverService(cotyledon.Service):
                                 m_hpa_score = resource.get("hpa_score", 0)
                                 m_svc_name = p.template['parameters'].get(
                                     'service_name', 'N/A')
-                                for vnfc, flavor in resource.get("flavor_map").iteritems():
+                                for vnfc, flavor in resource.get("flavor_map").items():
                                     PC.VNF_COMPUTE_PROFILES.labels('ONAP',
                                                                    m_svc_name,
                                                                    demand_name,