cocoonstack-sandbox 0.1.25__tar.gz → 0.1.26__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.
Files changed (36) hide show
  1. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/PKG-INFO +1 -1
  2. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/template.py +3 -5
  3. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonstack_sandbox.egg-info/PKG-INFO +1 -1
  4. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/pyproject.toml +1 -1
  5. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/LICENSE +0 -0
  6. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/README.md +0 -0
  7. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/__init__.py +0 -0
  8. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/checkpoint.py +0 -0
  9. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/client.py +0 -0
  10. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/conn.py +0 -0
  11. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/endpoint.py +0 -0
  12. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/errors.py +0 -0
  13. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/frames.py +0 -0
  14. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/py.typed +0 -0
  15. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/sandbox.py +0 -0
  16. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonsandbox/volumes.py +0 -0
  17. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonstack_sandbox.egg-info/SOURCES.txt +0 -0
  18. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonstack_sandbox.egg-info/dependency_links.txt +0 -0
  19. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/cocoonstack_sandbox.egg-info/top_level.txt +0 -0
  20. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/setup.cfg +0 -0
  21. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_checkpoint.py +0 -0
  22. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_client.py +0 -0
  23. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_endpoint.py +0 -0
  24. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_fault_matrix.py +0 -0
  25. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_fixtures.py +0 -0
  26. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_frames.py +0 -0
  27. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_hardening.py +0 -0
  28. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_keepalive.py +0 -0
  29. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_packaging.py +0 -0
  30. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_proc.py +0 -0
  31. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_proxy.py +0 -0
  32. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_stream.py +0 -0
  33. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_upgrade.py +0 -0
  34. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_volume_controller.py +0 -0
  35. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_volumes.py +0 -0
  36. {cocoonstack_sandbox-0.1.25 → cocoonstack_sandbox-0.1.26}/tests/test_wire_binding.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cocoonstack-sandbox
3
- Version: 0.1.25
3
+ Version: 0.1.26
4
4
  Summary: Python SDK for the cocoon sandbox control plane
5
5
  License: Apache-2.0
6
6
  Requires-Python: >=3.10
@@ -33,11 +33,9 @@ class Template:
33
33
  """Claims the template, following placement when volumes require it."""
34
34
  claim = _claim_body(self.name, self.net, self.size, ttl_seconds, volumes)
35
35
  claim["require_promoted"] = True
36
- if volumes:
37
- return self._client._claim_from(self._addr, claim, deadline=deadline)
38
- claim["no_redirect"] = True
39
- reply = self._client._request(self._addr, "POST", "/v1/claim", claim, "claim", deadline=deadline)
40
- return self._client._handle_from(self._addr, reply)
36
+ if not volumes:
37
+ claim["no_redirect"] = True
38
+ return self._client._claim_from(self._addr, claim, deadline=deadline)
41
39
 
42
40
  def delete(self) -> None:
43
41
  query = _template_query(self.name, self.net, self.size)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cocoonstack-sandbox
3
- Version: 0.1.25
3
+ Version: 0.1.26
4
4
  Summary: Python SDK for the cocoon sandbox control plane
5
5
  License: Apache-2.0
6
6
  Requires-Python: >=3.10
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cocoonstack-sandbox"
7
- version = "0.1.25"
7
+ version = "0.1.26"
8
8
  description = "Python SDK for the cocoon sandbox control plane"
9
9
  requires-python = ">=3.10"
10
10
  license = { text = "Apache-2.0" }