Skip to content

Commit d21aa79

Browse files
committed
Add mount_name as a required parameter for FluidClient.create_dataset()
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
1 parent f8f45d3 commit d21aa79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fluid/api/fluid_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ def create_dataset(self, dataset_name: str, mount_name: str, mount_point: str, m
7676
api_version=constants.API_VERSION,
7777
kind=constants.DATASET_KIND,
7878
metadata=client.V1ObjectMeta(
79-
name=mount_name,
79+
name=dataset_name,
8080
namespace=namespace or self.config.namespace,
8181
),
8282
spec=models.DatasetSpec(
8383
mounts=[models.Mount(
8484
mount_point=mount_point,
8585
path=mount_path,
86-
name=dataset_name,
86+
name=mount_name,
8787
options=options,
8888
encrypt_options=encrypt_options
8989
)],

0 commit comments

Comments
 (0)