summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py
diff options
context:
space:
mode:
Diffstat (limited to 'lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py')
-rw-r--r--lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py b/lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py
index b8e7f50f..919a3461 100644
--- a/lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py
+++ b/lcm/lcm/nf/biz/operate_vnf_lcm_op_occ.py
@@ -77,11 +77,13 @@ class VnfLcmOpOcc:
}
})).save()
- def upd(self, operation_state=None, error=None):
+ def upd(self, operation_state=None, sub_operation=None, error=None):
occ = VNFLcmOpOccModel.objects.filter(id=self.lcm_op_id)
with MUTEX_UPD_OCC:
if operation_state:
occ.update(operation_state=operation_state)
+ if sub_operation:
+ occ.update(sub_operation=sub_operation)
if error:
occ.update(error=json.dumps(error))