@@ -674,7 +674,7 @@ export default {
674
674
forcks: true
675
675
}
676
676
this .templateLoading = true
677
- api (' listTemplates' , params).then (json => {
677
+ getAPI (' listTemplates' , params).then (json => {
678
678
var templates = json? .listtemplatesresponse ? .template || []
679
679
ckstemplates .push (... templates)
680
680
}).finally (() => {
@@ -730,7 +730,7 @@ export default {
730
730
}
731
731
this .hypervisorLoading = true
732
732
733
- api (' listHypervisors' , params).then (json => {
733
+ getAPI (' listHypervisors' , params).then (json => {
734
734
const listResponse = json .listhypervisorsresponse .hypervisor || []
735
735
if (listResponse) {
736
736
this .selectedZoneHypervisors = listResponse
@@ -747,7 +747,7 @@ export default {
747
747
name: ' cloud.kubernetes.cluster.network.offering'
748
748
}
749
749
this .configLoading = true
750
- api (' listConfigurations' , params).then (json => {
750
+ getAPI (' listConfigurations' , params).then (json => {
751
751
if (json .listconfigurationsresponse .configuration !== null ) {
752
752
const config = json .listconfigurationsresponse .configuration [0 ]
753
753
if (config && config .name === params .name ) {
@@ -766,7 +766,7 @@ export default {
766
766
name: offeringName
767
767
}
768
768
769
- api (' listNetworkOfferings' , args).then (json => {
769
+ getAPI (' listNetworkOfferings' , args).then (json => {
770
770
const listNetworkOfferings = json .listnetworkofferingsresponse .networkoffering || []
771
771
resolve (listNetworkOfferings)
772
772
this .cksNetworkOffering = listNetworkOfferings[0 ] || {}
@@ -779,13 +779,13 @@ export default {
779
779
const params = {}
780
780
params .zoneid = this .selectedZone .id
781
781
params .isallocated = false
782
- api (' listASNumbers' , params).then (json => {
782
+ getAPI (' listASNumbers' , params).then (json => {
783
783
this .asNumbersZone = json .listasnumbersresponse .asnumber
784
784
})
785
785
},
786
786
fetchCniConfigurations () {
787
787
this .cniConfigLoading = true
788
- api (' listCniConfiguration' , {}).then (
788
+ getAPI (' listCniConfiguration' , {}).then (
789
789
response => {
790
790
const listResponse = response .listcniconfigurationresponse .cniconfig || []
791
791
if (listResponse) {
@@ -802,7 +802,7 @@ export default {
802
802
}
803
803
this .form .cniconfigurationid = id
804
804
this .cniConfigParams = []
805
- api (' listCniConfiguration' , { id: id }).then (json => {
805
+ getAPI (' listCniConfiguration' , { id: id }).then (json => {
806
806
const resp = json? .listcniconfigurationresponse ? .cniconfig || []
807
807
if (resp) {
808
808
var params = resp[0 ].params
0 commit comments