Signed-off-by: sinhan <nandan.sinha@riftio.com>
self.package_id = package_id
self.package_type = package_type
self.package_path = package_path
- self.package_file_type = vnfd_file_type.lower() if vnfd_file_type else nsd_file_type.lower()
++ self.package_file_type = vnfd_file_type.lower() \
++ if package_type == 'VNFD' else nsd_file_type.lower()
self.proxy = proxy
def convert_to_yang(self):
rpc_op = RPC_PACKAGE_DELETE_ENDPOINT.from_dict({"status": str(True)})
try:
- if msg.vnfd_file_type else msg.nsd_file_type.lower()
+ package_file_type = msg.vnfd_file_type.lower() \
++ if msg.package_type == 'VNFD' else msg.nsd_file_type.lower()
self.proxy.package_file_delete(
msg.package_type,
msg.package_id,