blob: 7446e3012c257837495cc8d2f224c045cfc7b23c (
plain)
1
2
3
4
5
6
7
8
9
|
from varlink import (Client, VarlinkError)
import json
address = "unix:/run/podman/io.projectatomic.podman"
with Client(address=address) as client:
podman = client.open('io.projectatomic.podman')
response = podman.GetVersion()
print(json.dumps(response, indent=4, separators=(',', ': ')))
|