From 9c8d1f0f53c2a5926c92931f042b0add4466dc75 Mon Sep 17 00:00:00 2001 From: Jankowiak Szymon-PRFJ46 Date: Thu, 21 Oct 2021 12:08:16 +0200 Subject: [PATCH] Allow passing labels to volumes Signed-off-by: Jankowiak Szymon-PRFJ46 --- podman/domain/volumes.py | 2 +- podman/tests/unit/test_volumesmanager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, }, },