1107798da6
Generated with a codemode: https://github.com/ember-cli/ember-modules-codemod
16 lines
423 B
JavaScript
16 lines
423 B
JavaScript
import { copy } from '@ember/object/internals';
|
|
import ApplicationSerializer from './application';
|
|
|
|
export default ApplicationSerializer.extend({
|
|
normalize(typeHash, hash) {
|
|
// Provide EphemeralDisk to each task
|
|
hash.Tasks.forEach(task => {
|
|
task.EphemeralDisk = copy(hash.EphemeralDisk);
|
|
});
|
|
|
|
hash.ReservedEphemeralDisk = hash.EphemeralDisk.SizeMB;
|
|
|
|
return this._super(typeHash, hash);
|
|
},
|
|
});
|