Skip to content

Commit

Permalink
Fix manual driver didn't find image (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
corentindrouet authored and Gentux committed Nov 17, 2016
1 parent 3526001 commit ae33826
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/drivers/manual/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ class ManualDriver extends Driver {
.then(() => {
return Promise.props({
config: ConfigService.get('machines'),
image: Image.update({
images: Image.update({
name: 'Default'
},{
instancesSize: null
})
});
})
.then(({config, image}) => {
.then(({config, images}) => {

let machines = config.machines.map((machine) => {
machine.image = image.id;
machine.image = images[0].id;
return Machine.findOrCreate(machine);
});

Expand Down

0 comments on commit ae33826

Please # to comment.