Skip to content

Commit

Permalink
F #6211: fix Datastore creation ignores cluster selection (#2721)
Browse files Browse the repository at this point in the history
  • Loading branch information
jloboescalona2 authored Sep 11, 2023
1 parent 9b9f919 commit 4c1ab6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fireedge/src/client/containers/Datastores/Create.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit 4c1ab6e

Please sign in to comment.