We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8e3ab commit c5a727eCopy full SHA for c5a727e
scripts/vm/hypervisor/external/provisioner/provisioner.sh
@@ -102,9 +102,9 @@ status() {
102
get_console() {
103
parse_json "$1" || exit 1
104
local response
105
- response=$(jq -n \
106
- '{status: "success", message: "Console retrieved"}')
107
- echo "$response"
+ jq -n --arg msg "Operation not supported" \
+ '{status:"error", message:$msg, code:"OPERATION_NOT_SUPPORTED"}'
+ return 1
108
}
109
110
action=$1
@@ -146,7 +146,7 @@ case $action in
146
status)
147
status "$parameters"
148
;;
149
- GetConsole)
+ getconsole)
150
get_console "$parameters"
151
152
*)
0 commit comments