podman volume inspect mountPoint/Mountpoint

podman version 1.6.1 volume inspect outputs Mountpoint instead of mountPoint
This commit is contained in:
Simon Li 2019-10-05 21:26:53 +01:00 committed by Muayyad Alsadi
parent e538852dbe
commit a9216c3980

View File

@ -381,7 +381,10 @@ def mount_dict_vol_to_bind(compose, mount_dict):
except subprocess.CalledProcessError:
compose.podman.output(["volume", "create", "--label", "io.podman.compose.project={}".format(proj_name), vol_name])
out = compose.podman.output(["volume", "inspect", vol_name]).decode('utf-8')
try:
src = json.loads(out)[0]["mountPoint"]
except KeyError:
src = json.loads(out)[0]["Mountpoint"]
ret=dict(mount_dict, type="bind", source=src, _vol=vol_name)
bind_prop=ret.get("bind", {}).get("propagation")
if not bind_prop: