Skip to content

Commit c1be47e

Browse files
fixing JSON formatter to output valid JSON (#284)
1 parent 94c3703 commit c1be47e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/cli/menu/InspectImage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public CommandResponse call() throws Exception {
4545

4646
String outputTemplate;
4747
// add additional formats here, the ENUM, and to the resources/inspect-responses folder
48-
switch (ouptutFormat) {
48+
switch (outputFormat) {
4949
case JSON:
5050
default:
5151
outputTemplate = "inspect-json.mustache";
@@ -96,5 +96,5 @@ public CommandResponse call() throws Exception {
9696
description = "Output format. Supported values: ${COMPLETION-CANDIDATES} Default: ${DEFAULT-VALUE}",
9797
defaultValue = "JSON"
9898
)
99-
private OutputFormat ouptutFormat;
99+
private OutputFormat outputFormat;
100100
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
{{#response}}
3-
{{value.key}}: "{{value.value}}"{{^last}}, {{/last}}
3+
"{{value.key}}": "{{value.value}}"{{^last}}, {{/last}}
44
{{/response}}
55
}

0 commit comments

Comments
 (0)