From 4c1ab6efee328b6ac2f9c4b35c13ba4df930030b Mon Sep 17 00:00:00 2001 From: Jorge Miguel Lobo Escalona Date: Mon, 11 Sep 2023 18:33:32 +0200 Subject: [PATCH] F #6211: fix Datastore creation ignores cluster selection (#2721) --- src/fireedge/src/client/containers/Datastores/Create.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fireedge/src/client/containers/Datastores/Create.js b/src/fireedge/src/client/containers/Datastores/Create.js index 6f812b285c9..94a9036273d 100644 --- a/src/fireedge/src/client/containers/Datastores/Create.js +++ b/src/fireedge/src/client/containers/Datastores/Create.js @@ -38,10 +38,11 @@ function CreateDatastore() { const [allocate] = useAllocateDatastoreMutation() const { enqueueSuccess } = useGeneralApi() - const onSubmit = async ({ template }) => { + const onSubmit = async ({ template, cluster }) => { try { const newTemplateId = await allocate({ template: jsonToXml(template), + cluster, }).unwrap() history.push(PATH.STORAGE.DATASTORES.LIST) enqueueSuccess(`Datastore created - #${newTemplateId}`)