Skip to content

Commit

Permalink
Merge pull request #182 from michaeltlombardi/gh-181/main/exit-codes-…
Browse files Browse the repository at this point in the history
…resources

(GH-181) Add semantic exit codes to `DSC/*` resource manifests
  • Loading branch information
SteveL-MSFT authored Sep 1, 2023
2 parents 5981176 + 7ae9cc1 commit 6dc3871
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion dsc/assertion.dsc.resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@
"return": "state"
},
"exitCodes": {
"0": "Success"
"0": "Success",
"1": "Invalid argument",
"2": "Resource error",
"3": "JSON Serialization error",
"4": "Invalid input format",
"5": "Resource instance failed schema validation",
"6": "Command cancelled"
},
"schema": {
"command": {
Expand Down
8 changes: 7 additions & 1 deletion dsc/group.dsc.resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@
"return": "state"
},
"exitCodes": {
"0": "Success"
"0": "Success",
"1": "Invalid argument",
"2": "Resource error",
"3": "JSON Serialization error",
"4": "Invalid input format",
"5": "Resource instance failed schema validation",
"6": "Command cancelled"
},
"validate": {
"executable": "dsc",
Expand Down
8 changes: 7 additions & 1 deletion dsc/parallel.dsc.resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@
"return": "state"
},
"exitCodes": {
"0": "Success"
"0": "Success",
"1": "Invalid argument",
"2": "Resource error",
"3": "JSON Serialization error",
"4": "Invalid input format",
"5": "Resource instance failed schema validation",
"6": "Command cancelled"
},
"validate": {
"executable": "dsc",
Expand Down

0 comments on commit 6dc3871

Please sign in to comment.