Skip to content

Commit c5a727e

Browse files
committed
match response
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 7a8e3ab commit c5a727e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/vm/hypervisor/external/provisioner/provisioner.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ status() {
102102
get_console() {
103103
parse_json "$1" || exit 1
104104
local response
105-
response=$(jq -n \
106-
'{status: "success", message: "Console retrieved"}')
107-
echo "$response"
105+
jq -n --arg msg "Operation not supported" \
106+
'{status:"error", message:$msg, code:"OPERATION_NOT_SUPPORTED"}'
107+
return 1
108108
}
109109

110110
action=$1
@@ -146,7 +146,7 @@ case $action in
146146
status)
147147
status "$parameters"
148148
;;
149-
GetConsole)
149+
getconsole)
150150
get_console "$parameters"
151151
;;
152152
*)

0 commit comments

Comments
 (0)