Merge "Avoid double ".img" postfix of image file path in devstack installation"
This commit is contained in:
commit
5f0187d57e
@ -2158,7 +2158,13 @@ function prepare_baremetal_basic_ops {
|
||||
fi
|
||||
|
||||
if ! is_service_enabled nova && [[ "$IRONIC_IPXE_ENABLED" == "True" ]] ; then
|
||||
sudo install -g $LIBVIRT_GROUP -o $STACK_USER -m 644 $FILES/${IRONIC_WHOLEDISK_IMAGE_NAME}.img $IRONIC_HTTP_DIR
|
||||
local image_file_path
|
||||
if [[ ${IRONIC_WHOLEDISK_IMAGE_NAME} =~ \.img$ ]]; then
|
||||
image_file_path=$FILES/${IRONIC_WHOLEDISK_IMAGE_NAME}
|
||||
else
|
||||
image_file_path=$FILES/${IRONIC_WHOLEDISK_IMAGE_NAME}.img
|
||||
fi
|
||||
sudo install -g $LIBVIRT_GROUP -o $STACK_USER -m 644 $image_file_path $IRONIC_HTTP_DIR
|
||||
fi
|
||||
|
||||
upload_baremetal_ironic_deploy
|
||||
|
Loading…
x
Reference in New Issue
Block a user