diff --git a/src/PSProxmoxVE/Cmdlets/Containers/CopyPveContainerCmdlet.cs b/src/PSProxmoxVE/Cmdlets/Containers/CopyPveContainerCmdlet.cs index 4d66f4c..54f2394 100644 --- a/src/PSProxmoxVE/Cmdlets/Containers/CopyPveContainerCmdlet.cs +++ b/src/PSProxmoxVE/Cmdlets/Containers/CopyPveContainerCmdlet.cs @@ -72,13 +72,6 @@ namespace PSProxmoxVE.Cmdlets.Containers protected override void ProcessRecord() { - if (!string.IsNullOrEmpty(Storage) && !Full.IsPresent) - ThrowTerminatingError(new ErrorRecord( - new PSArgumentException("-Storage is only valid together with -Full; PVE rejects a target storage on a linked clone.", nameof(Storage)), - "StorageRequiresFullClone", - ErrorCategory.InvalidArgument, - Storage)); - var target = TargetNode ?? SourceNode; if (!ShouldProcess($"Container {VmId} on node '{SourceNode}' to new container on node '{target}'", "Copy-PveContainer")) return; @@ -103,7 +96,7 @@ namespace PSProxmoxVE.Cmdlets.Containers if (Wait.IsPresent) { var taskService = new TaskService(); - task = taskService.WaitForTask(session, task.Node ?? SourceNode, task.Upid!, null, null, null); + task = taskService.WaitForTask(session, task.Node ?? SourceNode, task.Upid!); } WriteObject(task); diff --git a/src/PSProxmoxVE/Cmdlets/Vms/CopyPveVmCmdlet.cs b/src/PSProxmoxVE/Cmdlets/Vms/CopyPveVmCmdlet.cs index 9151ecc..4180937 100644 --- a/src/PSProxmoxVE/Cmdlets/Vms/CopyPveVmCmdlet.cs +++ b/src/PSProxmoxVE/Cmdlets/Vms/CopyPveVmCmdlet.cs @@ -72,13 +72,6 @@ namespace PSProxmoxVE.Cmdlets.Vms protected override void ProcessRecord() { - if (!string.IsNullOrEmpty(Storage) && !Full.IsPresent) - ThrowTerminatingError(new ErrorRecord( - new PSArgumentException("-Storage is only valid together with -Full; PVE rejects a target storage on a linked clone.", nameof(Storage)), - "StorageRequiresFullClone", - ErrorCategory.InvalidArgument, - Storage)); - var target = TargetNode ?? SourceNode; if (!ShouldProcess($"VM {VmId} on node '{SourceNode}' to new VM on node '{target}'", "Copy-PveVm")) return;