@@ -674,7 +674,7 @@ export default {
674674 forcks: true
675675 }
676676 this .templateLoading = true
677- api (' listTemplates' , params).then (json => {
677+ getAPI (' listTemplates' , params).then (json => {
678678 var templates = json? .listtemplatesresponse ? .template || []
679679 ckstemplates .push (... templates)
680680 }).finally (() => {
@@ -730,7 +730,7 @@ export default {
730730 }
731731 this .hypervisorLoading = true
732732
733- api (' listHypervisors' , params).then (json => {
733+ getAPI (' listHypervisors' , params).then (json => {
734734 const listResponse = json .listhypervisorsresponse .hypervisor || []
735735 if (listResponse) {
736736 this .selectedZoneHypervisors = listResponse
@@ -747,7 +747,7 @@ export default {
747747 name: ' cloud.kubernetes.cluster.network.offering'
748748 }
749749 this .configLoading = true
750- api (' listConfigurations' , params).then (json => {
750+ getAPI (' listConfigurations' , params).then (json => {
751751 if (json .listconfigurationsresponse .configuration !== null ) {
752752 const config = json .listconfigurationsresponse .configuration [0 ]
753753 if (config && config .name === params .name ) {
@@ -766,7 +766,7 @@ export default {
766766 name: offeringName
767767 }
768768
769- api (' listNetworkOfferings' , args).then (json => {
769+ getAPI (' listNetworkOfferings' , args).then (json => {
770770 const listNetworkOfferings = json .listnetworkofferingsresponse .networkoffering || []
771771 resolve (listNetworkOfferings)
772772 this .cksNetworkOffering = listNetworkOfferings[0 ] || {}
@@ -779,13 +779,13 @@ export default {
779779 const params = {}
780780 params .zoneid = this .selectedZone .id
781781 params .isallocated = false
782- api (' listASNumbers' , params).then (json => {
782+ getAPI (' listASNumbers' , params).then (json => {
783783 this .asNumbersZone = json .listasnumbersresponse .asnumber
784784 })
785785 },
786786 fetchCniConfigurations () {
787787 this .cniConfigLoading = true
788- api (' listCniConfiguration' , {}).then (
788+ getAPI (' listCniConfiguration' , {}).then (
789789 response => {
790790 const listResponse = response .listcniconfigurationresponse .cniconfig || []
791791 if (listResponse) {
@@ -802,7 +802,7 @@ export default {
802802 }
803803 this .form .cniconfigurationid = id
804804 this .cniConfigParams = []
805- api (' listCniConfiguration' , { id: id }).then (json => {
805+ getAPI (' listCniConfiguration' , { id: id }).then (json => {
806806 const resp = json? .listcniconfigurationresponse ? .cniconfig || []
807807 if (resp) {
808808 var params = resp[0 ].params
0 commit comments