From ac00f7c4c852700f79bedfe56d66170e6e0a1e61 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 9 Oct 2024 01:04:08 -0400 Subject: [PATCH] Fix boolean state of remove_on_source --- api-daemon/pvcapid/flaskapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index a79d0986..407388b9 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -4211,7 +4211,7 @@ class API_VM_Mirror_Promote(Resource): strtobool(reqargs.get("destination_api_verify_ssl", "true")) ) destination_storage_pool = reqargs.get("destination_storage_pool", None) - remove_on_source = reqargs.get("remove_on_source", False) + remove_on_source = bool(strtobool(reqargs.get("remove_on_source", "false"))) task = run_celery_task( "vm.promote_mirror",