docker-stack 2.0.3__tar.gz → 2.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {docker_stack-2.0.3 → docker_stack-2.0.4}/PKG-INFO +1 -1
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/manager_api.py +10 -1
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack.egg-info/PKG-INFO +1 -1
- {docker_stack-2.0.3 → docker_stack-2.0.4}/setup.py +1 -1
- {docker_stack-2.0.3 → docker_stack-2.0.4}/README.md +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/__init__.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/cli.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/command_runner.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/compose.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/docker_objects.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/envsubst.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/envsubst_merge.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/helpers.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/login.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/markers.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/merge_conf.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/registry.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack/url_parser.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack.egg-info/SOURCES.txt +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack.egg-info/dependency_links.txt +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack.egg-info/entry_points.txt +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack.egg-info/requires.txt +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/docker_stack.egg-info/top_level.txt +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/pyproject.toml +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/setup.cfg +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/tests/test_docker_objects.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/tests/test_docker_stack.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/tests/test_load_env.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/tests/test_login.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/tests/test_manager_api.py +0 -0
- {docker_stack-2.0.3 → docker_stack-2.0.4}/tests/test_node_ls.py +0 -0
|
@@ -110,7 +110,16 @@ class ManagerApiClient:
|
|
|
110
110
|
with urllib.request.urlopen(request, timeout=self.timeout_secs, context=context) as response:
|
|
111
111
|
return json.loads(response.read().decode("utf-8"))
|
|
112
112
|
except urllib.error.HTTPError as exc:
|
|
113
|
-
|
|
113
|
+
body = ""
|
|
114
|
+
try:
|
|
115
|
+
payload = exc.read().decode("utf-8", errors="replace").strip()
|
|
116
|
+
if payload:
|
|
117
|
+
body = f": {payload}"
|
|
118
|
+
except Exception:
|
|
119
|
+
body = ""
|
|
120
|
+
raise RuntimeError(
|
|
121
|
+
f"Manager request failed ({method} {path}): HTTP {exc.code}{body}"
|
|
122
|
+
) from exc
|
|
114
123
|
except urllib.error.URLError as exc:
|
|
115
124
|
raise RuntimeError(f"Manager request failed ({method} {path}): {exc.reason}") from exc
|
|
116
125
|
except json.JSONDecodeError as exc:
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="docker-stack",
|
|
5
|
-
version="2.0.
|
|
5
|
+
version="2.0.4",
|
|
6
6
|
description="CLI for deploying and managing Docker stacks.",
|
|
7
7
|
long_description=open("README.md").read(), # You can include a README file to describe your package
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|