make sure --show-config doesn't crash main server :-)

This commit is contained in:
Jonathan Lipps
2013-12-09 14:39:46 -08:00
parent 8903185789
commit 0edd3a629d
2 changed files with 3 additions and 2 deletions

View File

@@ -172,8 +172,9 @@ var main = function(args, readyCb, doneCb) {
return cb(e);
}
var versionMismatches = {};
var excludedKeys = ["git-sha", "node_bin", "built"];
_.each(rawConfig, function(deviceConfig, key) {
if (deviceConfig.version !== appiumVer && key !== "git-sha" && key !== "node_bin") {
if (deviceConfig.version !== appiumVer && !_.contains(excludedKeys, key)) {
versionMismatches[key] = deviceConfig.version;
} else if (key === "git-sha") {
appiumRev = rawConfig['git-sha'];

View File

@@ -335,7 +335,7 @@ var args = [
}],
[['--show-config'], {
defaultValue: true
defaultValue: false
, dest: 'showConfig'
, action: 'storeTrue'
, required: false