mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-22 10:46:37 +00:00
feat: support -Version for -Provision and -Cleanup commands
Provision and cleanup now accept a version argument (8, 9, or all) to operate on a subset of PVE nodes: dev.ps1 -Provision -Version 9 -DockerHost ... # only PVE 9 nodes dev.ps1 -Cleanup -Version 8 -DockerHost ... # only PVE 8 nodes run-integration.sh provision/cleanup also accept the version arg, overriding PVE_VERSIONS and ALL_NODES for that invocation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -229,7 +229,7 @@ if ($Test) {
|
||||
|
||||
if ($Provision) {
|
||||
Start-InfraContainer
|
||||
docker exec $InfraContainer bash $RunIntegration provision
|
||||
docker exec $InfraContainer bash $RunIntegration provision $Version
|
||||
if ($LASTEXITCODE -ne 0) { throw "Provisioning failed (exit code $LASTEXITCODE)" }
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ if ($Integration) {
|
||||
|
||||
if ($Cleanup) {
|
||||
Start-InfraContainer
|
||||
docker exec $InfraContainer bash $RunIntegration cleanup
|
||||
docker exec $InfraContainer bash $RunIntegration cleanup $Version
|
||||
if ($LASTEXITCODE -ne 0) { throw "Cleanup failed (exit code $LASTEXITCODE)" }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user