summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/nf
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-04-28 15:44:40 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-04-28 15:58:10 +0800
commit496bca378a06a8690d23b999b713900347ac96f2 (patch)
treebbb4afe656b721f68ff5850a46b7b2dbe59108cb /lcm/lcm/nf
parent6a34d8e87885f0ce85a29707a5cc242d32109eed (diff)
Add suboperation to lcm op occ
Change-Id: Idba4b5374f564d467694e7592d287ace868346a5 Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm/lcm/nf')
-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))