mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-09-04 03:05:32 +00:00
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:
committed by
GitHub
parent
ad19b14d1a
commit
4ec528edbc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user