Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 20, 2024
1 parent b81ee78 commit 1567afa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions IM/tosca/Tosca.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@ def to_radl(self, inf_info=None):
namespace = self.tosca.tpl.get('metadata', {}).get('namespace')
if infra_name or namespace:
radl.description = description('desc')
radl.description.setValue('name', infra_name)
radl.description.setValue('namespace', namespace)
if infra_name:
radl.description.setValue('name', infra_name)
if namespace:
radl.description.setValue('namespace', namespace)

return all_removal_list, self._complete_radl_networks(radl)

Expand Down

0 comments on commit 1567afa

Please sign in to comment.