aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-27 13:16:29 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-27 13:16:29 +0800
commitcf91d331cccde7eef1f11bdb4a8f91bb0a4284bc (patch)
tree370c0db5431b6f8ee364e23a4a9095a31c38c0bc
parent156d8edc215b6b42ebd3c9d2bd8d0d82e40205a2 (diff)
Update vfc-nfvo-lcm wf plan file path
Change-Id: I896917e5e0ec7099eaa66ec7c5b9948a7f024cf4 Issue-Id: VFC-463 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/workflows/auto_deploy.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lcm/workflows/auto_deploy.py b/lcm/workflows/auto_deploy.py
index 913d42b8..c56e6472 100644
--- a/lcm/workflows/auto_deploy.py
+++ b/lcm/workflows/auto_deploy.py
@@ -13,6 +13,7 @@
# limitations under the License.
import logging
import traceback
+import os
from lcm.pub.database.models import WFPlanModel
from lcm.pub.msapi import activiti
@@ -25,7 +26,8 @@ def deploy_workflow_on_startup():
if WFPlanModel.objects.filter():
logger.warn("Workflow is already deployed.")
return
- file_path = "TODO:"
+ base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ file_path = os.path.join(base_path, "ns/data/nsinit.bpmn20.xml")
deploy_info = activiti.deploy_workflow(file_path)
WFPlanModel(
deployed_id=deploy_info["deployedId"],