mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Code review update
Change-Id: I384a73efe995c529fb4b3636cb9639eafb90787f Signed-off-by: Joakim Roubert <joakimr@axis.com>
This commit is contained in:
@@ -253,9 +253,7 @@ function get-or-generate-uuid(){
|
|||||||
else
|
else
|
||||||
# generate new uuid and add it to the map
|
# generate new uuid and add it to the map
|
||||||
local myuuid
|
local myuuid
|
||||||
myuuid=$(uuidgen)
|
if ! myuuid=$(uuidgen); then
|
||||||
# shellcheck disable=SC2181
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
echo "Failed to generate valid UUID with uuidgen" >&2
|
echo "Failed to generate valid UUID with uuidgen" >&2
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user