File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
plugins/son-mano-service-lifecycle-management/son_mano_slm Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -2015,22 +2015,27 @@ def vnfs_generic_envs(self, serv_id):
20152015 else :
20162016 pass
20172017
2018- # Add injected envs, if provided:
2019- if self .services [serv_id ]['params' ]:
2020- g_envs .update (self .services [serv_id ]['params' ])
2021-
2022- msg = ': Generic envs: ' + str (g_envs )
2023- LOG .info ("Service " + serv_id + msg )
2024-
20252018 for vnf in vnfs :
20262019 vnfd = vnf ['vnfd' ]
20272020 if 'cloudnative_deployment_units' in vnfd :
20282021 list_g_envs = []
20292022 for cdu in vnfd ['cloudnative_deployment_units' ]:
2023+ copy_g_envs = copy .copy (g_envs )
2024+ try :
2025+ copy_g_envs .update (cdu ['parameters' ]['env' ])
2026+ except KeyError :
2027+ pass
2028+ try :
2029+ copy_g_envs .update (self .services [serv_id ]['params' ])
2030+ except :
2031+ pass
20302032 list_g_envs .append ({'cdu_id' : cdu ['id' ],
2031- 'envs' : g_envs })
2033+ 'envs' : copy_g_envs })
20322034 vnf ['generic_envs' ] = list_g_envs
20332035
2036+ msg = ': Generic envs per vnf: ' + str (list_g_envs )
2037+ LOG .info ("Service " + serv_id + msg )
2038+
20342039 return
20352040
20362041 def vnfs_start (self , serv_id ):
You can’t perform that action at this time.
0 commit comments