diff --git a/podman/domain/volumes.py b/podman/domain/volumes.py index 619a0635..d0366058 100644 --- a/podman/domain/volumes.py +++ b/podman/domain/volumes.py @@ -60,7 +60,7 @@ def create(self, name: Optional[str] = None, **kwargs) -> Volume: """ data = { "Driver": kwargs.get("driver"), - "Labels": kwargs.get("labels"), + "Label": kwargs.get("labels"), "Name": name, "Options": kwargs.get("driver_opts"), } diff --git a/podman/tests/unit/test_volumesmanager.py b/podman/tests/unit/test_volumesmanager.py index 25af0189..d03621f3 100644 --- a/podman/tests/unit/test_volumesmanager.py +++ b/podman/tests/unit/test_volumesmanager.py @@ -68,7 +68,7 @@ def test_create(self, mock): adapter.last_request.json(), { "Name": "dbase", - "Labels": { + "Label": { "BackupRequired": True, }, },