snapctl 1.0.3__tar.gz → 1.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.
Potentially problematic release.
This version of snapctl might be problematic. Click here for more details.
- {snapctl-1.0.3 → snapctl-1.0.4}/PKG-INFO +1 -1
- {snapctl-1.0.3 → snapctl-1.0.4}/pyproject.toml +1 -1
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/commands/byows.py +6 -4
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/config/constants.py +1 -1
- snapctl-1.0.4/snapctl/data/releases/1.0.3.mdx +4 -0
- snapctl-1.0.4/snapctl/data/releases/1.0.4.mdx +5 -0
- snapctl-1.0.3/snapctl/data/releases/1.0.3.mdx +0 -5
- {snapctl-1.0.3 → snapctl-1.0.4}/LICENSE +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/README.md +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/__init__.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/__main__.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/commands/__init__.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/commands/byogs.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/commands/byosnap.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/commands/game.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/commands/generate.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/commands/release_notes.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/commands/snapend.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/config/__init__.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/config/app.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/config/endpoints.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/config/hashes.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/__init__.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/profiles/__init__.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/profiles/snapser-byosnap-profile.json +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/profiles/snapser-byosnap-profile.yaml +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/profiles/snapser-byosnap-profile.yml +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/1.0.0.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/1.0.2.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/__init__.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.46.0.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.46.4.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.47.0.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.47.1.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.47.2.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.48.0.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.0.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.1.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.2.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.3.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.50.0.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.51.0.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/data/releases/beta-0.53.1.mdx +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/main.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/types/__init__.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/types/definitions.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/utils/__init__.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/utils/echo.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/utils/helper.py +0 -0
- {snapctl-1.0.3 → snapctl-1.0.4}/snapctl/utils/telemetry.py +0 -0
|
@@ -20,6 +20,7 @@ from snapctl.config.constants import SERVER_CALL_TIMEOUT, SNAPCTL_INPUT_ERROR, \
|
|
|
20
20
|
from snapctl.utils.helper import snapctl_error, snapctl_success, get_dot_snapser_dir
|
|
21
21
|
from snapctl.utils.echo import info, warning
|
|
22
22
|
|
|
23
|
+
|
|
23
24
|
class Byows:
|
|
24
25
|
"""
|
|
25
26
|
CLI commands exposed for a Bring your own Workstation
|
|
@@ -106,7 +107,7 @@ class Byows:
|
|
|
106
107
|
env_vars = []
|
|
107
108
|
|
|
108
109
|
for snap_id in snap_ids:
|
|
109
|
-
upper_id = snap_id.upper()
|
|
110
|
+
upper_id = snap_id.upper().replace("-", "_")
|
|
110
111
|
env_vars.append(f"SNAPEND_{upper_id}_GRPC_URL=localhost:{port}")
|
|
111
112
|
env_vars.append(
|
|
112
113
|
f"SNAPEND_{upper_id}_HTTP_URL=http://localhost:{port}")
|
|
@@ -128,7 +129,7 @@ class Byows:
|
|
|
128
129
|
env_lines = []
|
|
129
130
|
|
|
130
131
|
for snap_id in snap_ids:
|
|
131
|
-
upper_id = snap_id.upper()
|
|
132
|
+
upper_id = snap_id.upper().replace("-", "_")
|
|
132
133
|
env_lines.append(
|
|
133
134
|
f"export SNAPEND_{upper_id}_GRPC_URL=localhost:{port}")
|
|
134
135
|
env_lines.append(
|
|
@@ -393,7 +394,7 @@ class Byows:
|
|
|
393
394
|
self._handle_signal))
|
|
394
395
|
if hasattr(signal, "SIGBREAK"):
|
|
395
396
|
signal.signal(signal.SIGBREAK,
|
|
396
|
-
|
|
397
|
+
functools.partial(self._handle_signal))
|
|
397
398
|
# Set up port forward
|
|
398
399
|
self._setup_port_forward(
|
|
399
400
|
response_json['proxyPrivateKey'],
|
|
@@ -416,7 +417,8 @@ class Byows:
|
|
|
416
417
|
code=SNAPCTL_BYOWS_ATTACH_ERROR, progress=progress)
|
|
417
418
|
except HTTPError as http_err:
|
|
418
419
|
snapctl_error(
|
|
419
|
-
message=Byows._format_portal_http_error(
|
|
420
|
+
message=Byows._format_portal_http_error(
|
|
421
|
+
"Attach failed.", http_err, res),
|
|
420
422
|
code=SNAPCTL_BYOWS_ATTACH_ERROR, progress=progress)
|
|
421
423
|
except RequestException as e:
|
|
422
424
|
snapctl_error(
|
|
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
|
|
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
|