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.
This commit is contained in:
goodolclint-claude[bot]
2026-09-02 19:23:13 +00:00
committed by GitHub
parent ad19b14d1a
commit 4ec528edbc
+3 -1
View File
@@ -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