mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
14 lines
758 B
Diff
14 lines
758 B
Diff
diff --git a/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py b/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py
|
|
index 5fa4f898..41264ebb 100644
|
|
--- a/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py
|
|
+++ b/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py
|
|
@@ -142,7 +142,7 @@ class LXD(Provider):
|
|
build_provider_flags=build_provider_flags,
|
|
)
|
|
# This endpoint is hardcoded everywhere lxc/lxd-pkg-snap#33
|
|
- lxd_socket_path = "/var/snap/lxd/common/lxd/unix.socket"
|
|
+ lxd_socket_path = "/var/lib/lxd/unix.socket"
|
|
endpoint = "http+unix://{}".format(urllib.parse.quote(lxd_socket_path, safe=""))
|
|
try:
|
|
self._lxd_client: pylxd.Client = pylxd.Client(endpoint=endpoint)
|