Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CB-6522 Disallow space in target name
- Update target add command
- Update auto-detected target
  • Loading branch information
bryanhiggins committed Apr 25, 2014
1 parent b456aa1 commit f6a14d71d256da4c1145638e79b0c2c9e80b18db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
@@ -105,6 +105,7 @@ commander
if (properties.targets.hasOwnProperty(targetName)) {
console.log("Overwriting target: " + targetName);
}
targetName = targetName.replace(/ /g, "-");
properties.targets[targetName] = {"ip": ip, "type": type, "password": password, "pin": pin};
});

@@ -282,7 +282,7 @@ _self = {

targetUtils.getDeviceInfo(ip, devicePass, function (err, device) {
if (!err) {
targetName = device.name + "-" + device.pin;
targetName = device.name.replace(/ /g, "-") + "-" + device.pin;
props.targets[targetName] = {
ip: ip,
pin: device.pin,

0 comments on commit f6a14d7

Please sign in to comment.