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() {
|
get mapperBeforeFetchProject() {
|
||||||
return (data) => {
|
return (data) => {
|
||||||
const { extra_specs = {}, ...rest } = data;
|
const { extra_specs: { key, ...extraRest } = {}, ...rest } = data;
|
||||||
const gpuInfo = this.getGpuInfo(data);
|
const gpuInfo = this.getGpuInfo(data);
|
||||||
return {
|
return {
|
||||||
...rest,
|
...rest,
|
||||||
...extra_specs,
|
...extraRest,
|
||||||
architecture: extra_specs[':architecture'] || 'custom',
|
architecture: extraRest[':architecture'] || 'custom',
|
||||||
category: extra_specs[':category'],
|
category: extraRest[':category'],
|
||||||
...gpuInfo,
|
...gpuInfo,
|
||||||
is_public: rest['os-flavor-access:is_public'],
|
is_public: rest['os-flavor-access:is_public'],
|
||||||
originData: data,
|
originData: data,
|
||||||
|
Loading…
Reference in New Issue
Block a user