From 01a079e0062d0d1a874455a88dd6af9cd0dfba34 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 31 May 2017 19:55:15 +0200 Subject: [PATCH] Don't try identifying non-existant device when attaching to a zone This resulted in an error message which is unnecessary. Fixes #11174 Signed-off-by: Michael Tremer --- src/functions/functions.zone | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/functions/functions.zone b/src/functions/functions.zone index a04b0831..c7275060 100644 --- a/src/functions/functions.zone +++ b/src/functions/functions.zone @@ -730,7 +730,9 @@ zone_port_attach() { assert isset hook # Make the port briefly flash if supported - port_identify "${port}" --background + if device_exists ${port}; then + port_identify "${port}" --background + fi hook_zone_exec "${hook}" "port_attach" "${zone}" "${port}" "$@" local ret="${?}" -- 2.47.2