@verdnatura/myt 1.6.11 → 1.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/myt-run.js +3 -2
  2. package/package.json +1 -1
package/myt-run.js CHANGED
@@ -125,13 +125,14 @@ class Run extends Command {
125
125
  try {
126
126
  const server = new Server(ct, dbConfig);
127
127
 
128
- if (isRandom) {
128
+ const useCustom = opts.ci || opts.network
129
+ if (isRandom || useCustom) {
129
130
  try {
130
131
  const netSettings = await ct.inspect({
131
132
  format: '{{json .NetworkSettings}}'
132
133
  });
133
134
 
134
- if (opts.ci || opts.network) {
135
+ if (useCustom) {
135
136
  dbConfig.host = opts.network
136
137
  ? netSettings.Networks[opts.network].IPAddress
137
138
  : netSettings.Gateway;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdnatura/myt",
3
- "version": "1.6.11",
3
+ "version": "1.6.12",
4
4
  "author": "Verdnatura Levante SL",
5
5
  "description": "MySQL version control",
6
6
  "license": "GPL-3.0",