From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonatan Schlag To: network@lists.ipfire.org Subject: [PATCH v2 8/8] autocompletion: use hids instead of ids Date: Wed, 26 Jul 2017 10:44:44 +0200 Message-ID: <1501058684-19861-8-git-send-email-jonatan.schlag@ipfire.org> In-Reply-To: <1501058684-19861-1-git-send-email-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2377458945411435418==" List-Id: --===============2377458945411435418== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Jonatan Schlag --- src/bash-completion/network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bash-completion/network b/src/bash-completion/network index 820c2d4..529a772 100644 --- a/src/bash-completion/network +++ b/src/bash-completion/network @@ -421,7 +421,7 @@ _network_zone_subcommand_config() { =20 local words=3D( $@ ) =20 - local commands=3D"destroy list new $(network raw list-zone-config-ids ${zon= e})" + local commands=3D"destroy list new $(network raw list-zone-config-hids ${zo= ne})" =20 local cmd=3D"$(_network_find_on_cmdline "${commands}")" if [[ -z "${cmd}" ]]; then @@ -442,7 +442,7 @@ _network_zone_subcommand_config() { *) # Check if we get a valid id # TODO: We should also accept a valid hid - if network raw zone-config-id-is-valid ${zone} ${cmd}; then + if network raw zone-config-id-is-valid ${zone} ${cmd} || network raw zone= -config-hid-is-valid ${zone} ${cmd}; then _network_zone_subcommand_config_subcommand ${zone} ${args} fi ;; --=20 2.6.3 --===============2377458945411435418==--