Skip to content
Snippets Groups Projects
Commit e233220b authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: wizard command was broken

parent 777193b4
Branches
Tags
No related merge requests found
...@@ -168,12 +168,17 @@ program ...@@ -168,12 +168,17 @@ program
.description('Launch the configuration Wizard') .description('Launch the configuration Wizard')
.action(subCommand(function (step) { .action(subCommand(function (step) {
// Only show message "Saved" // Only show message "Saved"
connect(function (step, server, conf) { return connect(function (step, server, conf) {
return new Promise((resolve, reject) => {
async.series([ async.series([
function (next) { function (next) {
startWizard(step, server, conf, next); startWizard(step, server, conf, next);
} }
], logIfErrorAndExit(server)); ], (err) => {
if (err) return reject(err);
resolve();
});
});
})(step, null); })(step, null);
})); }));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment