alter ordering of backup offerings (#7044)

Co-authored-by: Wei Zhou <weizhou@apache.org>
Co-authored-by: Gabriel Ortiga Fernandes <gabriel.fernandes@scclouds.com.br>
This commit is contained in:
GaOrtiga 2023-01-04 05:51:23 -03:00 committed by GitHub
parent 908981e848
commit 3ace9a514c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1161,6 +1161,11 @@ export default {
param.loading = false
for (const obj in json) {
if (obj.includes('response')) {
if (possibleApi === 'listBackupOfferings' && json[obj].backupoffering) {
json[obj].backupoffering.sort((a, b) => {
return a.name > b.name
})
}
for (const res in json[obj]) {
if (res === 'count') {
continue