Skip to content

Commit 9efbe9a

Browse files
authored
xe-cli: Allow floppy to be autocompleted (#6623)
Also add it to the documentation of the parameter of vbd-create
2 parents 791e25d + 0f5a9f9 commit 9efbe9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ocaml/xapi-cli-server/cli_frontend.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2142,7 +2142,7 @@ let rec cmdtable_data : (string * cmd_spec) list =
21422142
"Create a VBD. Appropriate values for the device field are listed in \
21432143
the parameter 'allowed-VBD-devices' on the VM. If no VDI is \
21442144
specified, an empty VBD will be created. The type parameter can be \
2145-
'Disk' or 'CD', and the mode is 'RO' or 'RW'."
2145+
'Disk', 'CD' or 'Floppy', and the mode is 'RO' or 'RW'."
21462146
; implementation= No_fd Cli_operations.vbd_create
21472147
; flags= []
21482148
}

ocaml/xe-cli/bash-completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ _xe()
342342
__xe_debug "triggering autocompletion for type, class is '$fst'"
343343

344344
if [[ "$fst" == "vbd" ]]; then
345-
set_completions 'Disk,CD' "$value"
345+
set_completions 'Disk,CD,Floppy' "$value"
346346
elif [[ "$fst" == "vdi" ]]; then
347347
set_completions 'system,user,suspend,crashdump' "$value"
348348
elif [[ "$fst" == "sr" ]]; then

0 commit comments

Comments
 (0)