From 4ec528edbcffb6b925bed88593184c82be4f154c Mon Sep 17 00:00:00 2001 From: "goodolclint-claude[bot]" <323206664+goodolclint-claude[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 19:23:13 +0000 Subject: [PATCH] fix: add missing storage parameter to VmService.CloneVm VmService.cs was omitted from the earlier push; this restores the storage parameter and form-body wiring that belongs with this fix. --- src/PSProxmoxVE.Core/Services/VmService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PSProxmoxVE.Core/Services/VmService.cs b/src/PSProxmoxVE.Core/Services/VmService.cs index d350088..8df89d0 100644 --- a/src/PSProxmoxVE.Core/Services/VmService.cs +++ b/src/PSProxmoxVE.Core/Services/VmService.cs @@ -436,7 +436,8 @@ namespace PSProxmoxVE.Core.Services int newid, string? name = null, string? targetNode = null, - bool full = true) + bool full = true, + string? storage = null) { if (session == null) throw new ArgumentNullException(nameof(session)); if (string.IsNullOrWhiteSpace(node)) throw new ArgumentNullException(nameof(node)); @@ -448,6 +449,7 @@ namespace PSProxmoxVE.Core.Services }; if (!string.IsNullOrEmpty(name)) formData["name"] = name!; if (!string.IsNullOrEmpty(targetNode)) formData["target"] = targetNode!; + if (!string.IsNullOrEmpty(storage)) formData["storage"] = storage!; IPveHttpClient client = _injectedClient ?? new PveHttpClient(session); try