def callback(self, ks_path, msg):
"""Forwards the request to proxy.
"""
+
url = yield from self.proxy.endpoint(
- msg.package_type,
+ msg.package_type if msg.has_field('package_type') else "",
msg.package_id)
rpc_op = RPC_PKG_ENDPOINT.from_dict({"endpoint": url})
rpc_op = RPC_PACKAGE_DELETE_ENDPOINT.from_dict({"status": str(True)})
try:
+ 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,
- msg.package_path)
+ msg.package_path,
+ package_file_type)
except Exception as e:
self.log.exception(e)
rpc_op.status = str(False)