fix:Fix special name in flavor metadata
Remove key of extra_specs to return correct object in mapperBeforeFetchProject Change-Id: Id8b9f7839432b45af673e33832b36ae06fc7eefd
This commit is contained in:
parent
605f31a61b
commit
b14d532eb9
@ -79,13 +79,13 @@ export class FlavorStore extends Base {
|
||||
|
||||
get mapperBeforeFetchProject() {
|
||||
return (data) => {
|
||||
const { extra_specs = {}, ...rest } = data;
|
||||
const { extra_specs: { key, ...extraRest } = {}, ...rest } = data;
|
||||
const gpuInfo = this.getGpuInfo(data);
|
||||
return {
|
||||
...rest,
|
||||
...extra_specs,
|
||||
architecture: extra_specs[':architecture'] || 'custom',
|
||||
category: extra_specs[':category'],
|
||||
...extraRest,
|
||||
architecture: extraRest[':architecture'] || 'custom',
|
||||
category: extraRest[':category'],
|
||||
...gpuInfo,
|
||||
is_public: rest['os-flavor-access:is_public'],
|
||||
originData: data,
|
||||
|
Loading…
Reference in New Issue
Block a user