Skip to content

Commit f4ceaf3

Browse files
Merge pull request #409 from abhishek-lambda/CYP-1005
fix
2 parents 2ba8d08 + 64e3c6e commit f4ceaf3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

commands/utils/set_args.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,11 @@ function sync_args_from_cmd(args) {
456456
}
457457

458458
if ("privateCloud" in args) {
459-
lt_config["run_settings"]["privateCloud"] = args["privateCloud"];
459+
if (lt_config["run_settings"]["privateCloud"]=="true"){
460+
lt_config["run_settings"]["privateCloud"] = true;
461+
}else{
462+
lt_config["run_settings"]["privateCloud"] = false;
463+
}
460464
}else if (!lt_config["run_settings"]["privateCloud"]) {
461465
lt_config["run_settings"]["privateCloud"] = false ;
462466
}

commands/utils/validate.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,11 @@ module.exports = validate_config = function (lt_config, validation_configs) {
452452
}
453453
}
454454

455+
if ("privateCloud" in lt_config["run_settings"]) {
456+
if (![true, false].includes(lt_config["run_settings"]["privateCloud"])) {
457+
reject("Error!! boolean value is expected in privateCloud key");
458+
}
459+
}
455460

456461
if(lt_config)
457462
resolve(cypress_version);

0 commit comments

Comments
 (0)