Removing log statements from create_disk_image

This commit is contained in:
vandomej 2025-09-29 23:05:35 -07:00
parent d5ecfe9335
commit 638600b25e

View file

@ -56,10 +56,7 @@ create_disk_image() {
local disk_path="$vm_path/disk.qcow2" local disk_path="$vm_path/disk.qcow2"
if [[ ! -f "$disk_path" ]]; then if [[ ! -f "$disk_path" ]]; then
# log_info "Creating disk image for $vm_name..."
qemu-img create -f qcow2 "$disk_path" "$DISK_SIZE" qemu-img create -f qcow2 "$disk_path" "$DISK_SIZE"
else
log_warn "Disk image already exists for $vm_name"
fi fi
echo "$disk_path" echo "$disk_path"
} }
@ -148,13 +145,6 @@ main() {
local controlplane_script=$(create_vm_script "$controlplane_path" "$CONTROLPLANE_NAME" "$controlplane_mac" "$iso_path" "$controlplane_disk") local controlplane_script=$(create_vm_script "$controlplane_path" "$CONTROLPLANE_NAME" "$controlplane_mac" "$iso_path" "$controlplane_disk")
create_service_file "$controlplane_path" "$CONTROLPLANE_NAME" "$controlplane_script" create_service_file "$controlplane_path" "$CONTROLPLANE_NAME" "$controlplane_script"
echo "Resulting variables:"
echo "CONTROLPLANE_PATH=$controlplane_path"
echo "CONTROLPLANE_DISK=$controlplane_disk"
echo "CONTROLPLANE_MAC=$controlplane_mac"
echo "CONTROLPLANE_SCRIPT=$controlplane_script"
local manage_script="$VM_DIR/manage-vm.sh" local manage_script="$VM_DIR/manage-vm.sh"
cat > "$manage_script" << 'EOF' cat > "$manage_script" << 'EOF'
#!/bin/bash #!/bin/bash