Skip to content

Commit 71f1965

Browse files
authored
switch zone shell prompt: pass api-version header via curl (#8975)
1 parent 9f048ca commit 71f1965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smf/profile/bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ typeset _hstc="$C_RED$HOSTNAME"
1010
case "$_hst" in
1111
oxz_switch)
1212
# Try to determine which switch zone we are
13-
_switchid=$(curl -s http://localhost:12225/local/switch-id \
13+
_switchid=$(curl -H 'api-version: 1.0.0' -s http://localhost:12225/local/switch-id \
1414
| /opt/ooce/bin/jq -r .slot)
1515
if (( $? == 0 )) && [[ -n "$_switchid" ]]; then
1616
_hst+="$_switchid"

0 commit comments

Comments
 (0)