diff options
author | asgar <ma926a@us.att.com> | 2019-03-08 19:52:33 +0530 |
---|---|---|
committer | Asgar Samiulla <ma926a@us.att.com> | 2019-03-15 10:53:58 +0000 |
commit | af56b68e030085aa523152e83811705636ead79c (patch) | |
tree | 088c8faafb77a79a5fcc4001877dc13af4ffe936 /src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts | |
parent | eedac3e312c66499ca5ff9d72388c31b25813225 (diff) |
added ansible server functionality
multiple ansible server for CDT
Issue-ID: APPC-1510
Change-Id: I383bc63705418654efb596c617309821ebbeb9b4
Signed-off-by: Mohamed Asgar Samiulla <ma926a@us.att.com>
Diffstat (limited to 'src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts')
-rw-r--r-- | src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts index 00e014c..bb564b7 100644 --- a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts +++ b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts @@ -26,7 +26,7 @@ import {Observable} from 'rxjs'; import {UtilityService} from '../../../shared/services/utilityService/utility.service'; import { environment } from '../../../../environments/environment'; import { HttpUtilService } from '../../../shared/services/httpUtil/http-util.service'; -//import {APIService} from "../../../shared/services/cdt.apicall"; +import {APIService} from "../../../shared/services/cdt.apicall"; @Injectable() export class ReferenceDataFormUtil { @@ -35,9 +35,7 @@ export class ReferenceDataFormUtil { private failureMessage = 'There is no artifact saved in APPC for the selected action!'; private response: Observable<Object>; - constructor( - private notificationService: NotificationsService, private utilityService:UtilityService, private httpUtils: HttpUtilService - ) { + constructor(private notificationService: NotificationsService, private utilityService:UtilityService, private apiService: APIService) { } checkResult(result: any) { @@ -154,13 +152,10 @@ export class ReferenceDataFormUtil { return paramValue; } - handleApiData(payloadData,artifactType) + handleApiData(data,artifactType) { - this.response = - this.httpUtils.post({ - url: environment.getDesigns, - data: payloadData }); - this.response.subscribe( response => { + this.response = this.apiService.callGetArtifactsApi(data); + this.response.subscribe(response => { this.utilityService.processApiSubscribe(response, this.utilityService.putAction, artifactType) }, error => this.utilityService.processApiError()); |