mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-13 21:09:31 +00:00
Merge pull request #3776 from fidencio/wip/fix-unbound-variable-tools-clh
Fix unbound variable / typo on error mesage
This commit is contained in:
@@ -657,7 +657,7 @@ func (clh *cloudHypervisor) HotplugRemoveDevice(ctx context.Context, devInfo int
|
|||||||
defer span.End()
|
defer span.End()
|
||||||
|
|
||||||
if clh.config.ConfidentialGuest {
|
if clh.config.ConfidentialGuest {
|
||||||
return nil, errors.New("Device hotplug addition is not supported in confidential mode")
|
return nil, errors.New("Device hotplug removal is not supported in confidential mode")
|
||||||
}
|
}
|
||||||
|
|
||||||
var deviceID string
|
var deviceID string
|
||||||
|
@@ -16,7 +16,7 @@ ARCH=$(uname -m)
|
|||||||
script_dir=$(dirname $(readlink -f "$0"))
|
script_dir=$(dirname $(readlink -f "$0"))
|
||||||
kata_version="${kata_version:-}"
|
kata_version="${kata_version:-}"
|
||||||
force_build_from_source="${force_build_from_source:-false}"
|
force_build_from_source="${force_build_from_source:-false}"
|
||||||
extra_build_args="${extra_build_args:-}"
|
features="${features:-}"
|
||||||
|
|
||||||
source "${script_dir}/../../scripts/lib.sh"
|
source "${script_dir}/../../scripts/lib.sh"
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ if [ "${ARCH}" == "aarch64" ]; then
|
|||||||
force_build_from_source="true"
|
force_build_from_source="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${extra_build_args}" ]; then
|
if [ -n "${features}" ]; then
|
||||||
info "As an extra build argument has been passed to the script, forcing to build from source"
|
info "As an extra build argument has been passed to the script, forcing to build from source"
|
||||||
force_build_from_source="true"
|
force_build_from_source="true"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user