Skip to content

Commit 68bef7c

Browse files
committed
fix
1 parent 8ebe8e8 commit 68bef7c

File tree

2 files changed

+4
-4
lines changed
  • src
    • ResourceManager/Compute/Commands.Compute/Generated
    • ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation

2 files changed

+4
-4
lines changed

src/ResourceManager/Compute/Commands.Compute/Generated/cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ exports.init = function (cli) {
101101
if (options.operation == 'add') {
102102
jsonpatch.apply(parametersObj, [{op: options.operation, path: options.path, value: JSON.parse(options.value)}]);
103103
}
104-
else if (options.operation == 'remove' && jsonpatch.apply(parametersObj, [{op: 'test', path: options.path}])) {
104+
else if (options.operation == 'remove') {
105105
jsonpatch.apply(parametersObj, [{op: options.operation, path: options.path}]);
106106
}
107107
else if (options.operation == 'replace') {
@@ -306,7 +306,7 @@ exports.init = function (cli) {
306306
if (options.operation == 'add') {
307307
jsonpatch.apply(parametersObj, [{op: options.operation, path: options.path, value: JSON.parse(options.value)}]);
308308
}
309-
else if (options.operation == 'remove' && jsonpatch.apply(parametersObj, [{op: 'test', path: options.path}])) {
309+
else if (options.operation == 'remove') {
310310
jsonpatch.apply(parametersObj, [{op: options.operation, path: options.path}]);
311311
}
312312
else if (options.operation == 'replace') {
@@ -625,7 +625,7 @@ exports.init = function (cli) {
625625
if (options.operation == 'add') {
626626
jsonpatch.apply(parametersObj, [{op: options.operation, path: options.path, value: JSON.parse(options.value)}]);
627627
}
628-
else if (options.operation == 'remove' && jsonpatch.apply(parametersObj, [{op: 'test', path: options.path}])) {
628+
else if (options.operation == 'remove') {
629629
jsonpatch.apply(parametersObj, [{op: options.operation, path: options.path}]);
630630
}
631631
else if (options.operation == 'replace') {

src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/RunCodeGeneration.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ ${cmdlet_partial_class_code}
18411841
$cli_op_code_content += " if (options.operation == 'add') {" + $new_line_str;
18421842
$cli_op_code_content += " jsonpatch.apply(${cli_param_name}Obj, [{op: options.operation, path: options.path, value: JSON.parse(options.value)}]);" + $new_line_str;
18431843
$cli_op_code_content += " }" + $new_line_str;
1844-
$cli_op_code_content += " else if (options.operation == 'remove' && jsonpatch.apply(${cli_param_name}Obj, [{op: 'test', path: options.path}])) {" + $new_line_str;
1844+
$cli_op_code_content += " else if (options.operation == 'remove') {" + $new_line_str;
18451845
$cli_op_code_content += " jsonpatch.apply(${cli_param_name}Obj, [{op: options.operation, path: options.path}]);" + $new_line_str;
18461846
$cli_op_code_content += " }" + $new_line_str;
18471847
$cli_op_code_content += " else if (options.operation == 'replace') {" + $new_line_str;

0 commit comments

Comments
 (0)