Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed exec and logs command throwing an error with docker.getContainers
  • Loading branch information
ejnshtein committed Jun 8, 2021
1 parent 41f4abf commit 89115db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-packages/magento-scripts/lib/commands/execute.js
Expand Up @@ -4,7 +4,7 @@ const executeInContainer = require('../tasks/execute');

module.exports = (yargs) => {
yargs.command('exec <container name> [commands...]', 'Execute command in docker container', () => {}, async (argv) => {
const containers = docker.getContainers();
const containers = (await docker).getContainers();
const services = Object.keys(containers);

if (services.includes(argv.containername) || services.some((service) => service.includes(argv.containername))) {
Expand Down
2 changes: 1 addition & 1 deletion build-packages/magento-scripts/lib/commands/logs.js
Expand Up @@ -60,7 +60,7 @@ module.exports = (yargs) => {
);
},
async (argv) => {
const containers = docker.getContainers();
const containers = (await docker).getContainers();
const services = Object.keys(containers);

if (services.includes(argv.scope) || services.some((service) => service.includes(argv.scope))) {
Expand Down

0 comments on commit 89115db

Please sign in to comment.