aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/services
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2018-11-14 19:23:18 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2018-11-14 19:27:36 +0800
commit3f8fdca4a21906d77ab61d75ab162edf6e1448c4 (patch)
tree1a780457fd7472bb45b00876d23a8705d2da4815 /usecaseui-portal/src/app/services
parenta79f49321ee56b66011f8daba0ecaee4d6b63670 (diff)
fix ns instance instantiation bug
Change-Id: I6cecb862aaaad7f6f1f3c7208b682942dd8df8c3 Issue-ID: USECASEUI-160 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/services')
-rw-r--r--usecaseui-portal/src/app/services/services-list/services-list.component.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/services/services-list/services-list.component.ts
index 003e897f..e742ee39 100644
--- a/usecaseui-portal/src/app/services/services-list/services-list.component.ts
+++ b/usecaseui-portal/src/app/services/services-list/services-list.component.ts
@@ -532,8 +532,8 @@ export class ServicesListComponent implements OnInit {
let createParams = "?ns_instance_id=" + data.nsInstanceId +
"&customerId="+this.customerSelected.id +
"&serviceType="+this.serviceTypeSelected.name +
- "&serviceDomain="+"SITE" +
- "&parentServiceInstanceId="+this.parentServiceInstanceId;
+ "&serviceDomain="+ this.templateTypeSelected +
+ "&parentServiceInstanceId=";
// step2
this.createNsService(createParams,obj.step2).then((jobid)=>{
@@ -572,6 +572,10 @@ export class ServicesListComponent implements OnInit {
let mypromise = new Promise((res,rej)=>{
this.myhttp.nsCreateInstance2(id,obj)
.subscribe((data)=>{
+ if(data.status == "FAILED"){
+ console.log("instantiate ns service data :" + JSON.stringify(data));
+ return false;
+ }
res(data.jobId);
})
})