snapctl 0.38.3__py3-none-any.whl → 0.38.4__py3-none-any.whl
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/commands/snapend.py +10 -10
- snapctl/config/constants.py +1 -1
- {snapctl-0.38.3.dist-info → snapctl-0.38.4.dist-info}/METADATA +2 -2
- {snapctl-0.38.3.dist-info → snapctl-0.38.4.dist-info}/RECORD +7 -7
- {snapctl-0.38.3.dist-info → snapctl-0.38.4.dist-info}/LICENSE +0 -0
- {snapctl-0.38.3.dist-info → snapctl-0.38.4.dist-info}/WHEEL +0 -0
- {snapctl-0.38.3.dist-info → snapctl-0.38.4.dist-info}/entry_points.txt +0 -0
snapctl/commands/snapend.py
CHANGED
|
@@ -270,7 +270,7 @@ class Snapend:
|
|
|
270
270
|
SNAPCTL_INPUT_ERROR)
|
|
271
271
|
if self.env.upper() not in Snapend.ENV_TYPES:
|
|
272
272
|
snapctl_error(
|
|
273
|
-
"Invalid environment. Valid environments are "
|
|
273
|
+
"Invalid environment. Valid environments are " +
|
|
274
274
|
f"{', '.join(Snapend.ENV_TYPES)}.",
|
|
275
275
|
SNAPCTL_INPUT_ERROR
|
|
276
276
|
)
|
|
@@ -279,8 +279,8 @@ class Snapend:
|
|
|
279
279
|
"Missing required parameter: manifest_path", SNAPCTL_INPUT_ERROR)
|
|
280
280
|
if not os.path.isfile(self.manifest_path):
|
|
281
281
|
snapctl_error(
|
|
282
|
-
f"Invalid path {
|
|
283
|
-
|
|
282
|
+
f"Invalid path {self.manifest_path}. " +
|
|
283
|
+
"Please enter a valid path to the manifest file",
|
|
284
284
|
SNAPCTL_INPUT_ERROR
|
|
285
285
|
)
|
|
286
286
|
elif self.subcommand == 'apply':
|
|
@@ -290,8 +290,8 @@ class Snapend:
|
|
|
290
290
|
raise typer.Exit(code=SNAPCTL_INPUT_ERROR)
|
|
291
291
|
if not os.path.isfile(self.manifest_path):
|
|
292
292
|
snapctl_error(
|
|
293
|
-
f"Invalid path {
|
|
294
|
-
|
|
293
|
+
f"Invalid path {self.manifest_path}. " +
|
|
294
|
+
"Please enter a valid path to the manifest file",
|
|
295
295
|
SNAPCTL_INPUT_ERROR
|
|
296
296
|
)
|
|
297
297
|
if not self.manifest_file_name:
|
|
@@ -307,7 +307,7 @@ class Snapend:
|
|
|
307
307
|
"Missing required parameter: category", SNAPCTL_INPUT_ERROR)
|
|
308
308
|
if self.category not in Snapend.DOWNLOAD_CATEGORY:
|
|
309
309
|
snapctl_error(
|
|
310
|
-
"Invalid SDK category. Valid categories are "
|
|
310
|
+
"Invalid SDK category. Valid categories are " +
|
|
311
311
|
f"{', '.join(Snapend.DOWNLOAD_CATEGORY)}.",
|
|
312
312
|
SNAPCTL_INPUT_ERROR
|
|
313
313
|
)
|
|
@@ -317,14 +317,14 @@ class Snapend:
|
|
|
317
317
|
# Check the Protos category
|
|
318
318
|
if self.category == 'protos' and self.protos_category not in Snapend.PROTOS_CATEGORY:
|
|
319
319
|
snapctl_error(
|
|
320
|
-
"Invalid Protos category. Valid categories are "
|
|
320
|
+
"Invalid Protos category. Valid categories are " +
|
|
321
321
|
f"{', '.join(Snapend.PROTOS_CATEGORY)}.",
|
|
322
322
|
SNAPCTL_INPUT_ERROR
|
|
323
323
|
)
|
|
324
324
|
# Check the auth type
|
|
325
325
|
if self.category == 'server-sdk' and self.auth_type not in Snapend.AUTH_TYPES:
|
|
326
326
|
snapctl_error(
|
|
327
|
-
"Invalid auth type. Valid auth types are "
|
|
327
|
+
"Invalid auth type. Valid auth types are " +
|
|
328
328
|
f"{', '.join(Snapend.AUTH_TYPES)}.",
|
|
329
329
|
SNAPCTL_INPUT_ERROR
|
|
330
330
|
)
|
|
@@ -334,7 +334,7 @@ class Snapend:
|
|
|
334
334
|
SNAPCTL_INPUT_ERROR)
|
|
335
335
|
if self.out_path and not os.path.isdir(f"{self.out_path}"):
|
|
336
336
|
snapctl_error(
|
|
337
|
-
f"Invalid path {self.out_path}. "
|
|
337
|
+
f"Invalid path {self.out_path}. " +
|
|
338
338
|
"Please enter a valid path to save your output file",
|
|
339
339
|
SNAPCTL_INPUT_ERROR
|
|
340
340
|
)
|
|
@@ -416,7 +416,7 @@ class Snapend:
|
|
|
416
416
|
response = res.json()
|
|
417
417
|
if 'cluster' not in response or 'id' not in response['cluster']:
|
|
418
418
|
snapctl_error(
|
|
419
|
-
'Server Error. Unable to get a Snapend ID. '
|
|
419
|
+
'Server Error. Unable to get a Snapend ID. ' +
|
|
420
420
|
'Please try again in sometime.',
|
|
421
421
|
SNAPCTL_SNAPEND_CLONE_SERVER_ERROR,
|
|
422
422
|
progress
|
snapctl/config/constants.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snapctl
|
|
3
|
-
Version: 0.38.
|
|
3
|
+
Version: 0.38.4
|
|
4
4
|
Summary: Snapser CLI Tool
|
|
5
5
|
Author: Ajinkya Apte
|
|
6
6
|
Author-email: aj@snapser.com
|
|
@@ -288,7 +288,7 @@ Publish a new version for your Snap. Only after your Snap version is published,
|
|
|
288
288
|
to use your snap in your Snapend. This command should be run after `push` or `publish-image` commands.
|
|
289
289
|
|
|
290
290
|
IMPORTANT: You need to have $byosnapProfile to run this command. BYOSnap profile is a JSON configuration
|
|
291
|
-
of your BYOSnap for the development, staging and production environments.
|
|
291
|
+
of your BYOSnap for the development, staging and production environments. You can generate a base version of this file using the `snapctl generate profile --category byosnap --out-path <output_path>` command.
|
|
292
292
|
|
|
293
293
|
```
|
|
294
294
|
# Help for the byosnap command
|
|
@@ -5,9 +5,9 @@ snapctl/commands/byogs.py,sha256=XdF8Eq8vDzKFZzQzeRAbApTK8HwXBGwe64lcWNBu-dQ,135
|
|
|
5
5
|
snapctl/commands/byosnap.py,sha256=Z-yf7ssdvUnycIcZDN1JXZ-CO5gjq6yQZ7_bb6KYAeQ,31207
|
|
6
6
|
snapctl/commands/game.py,sha256=icAPD8derxtgXHZQvziHd1O8fwD5Kw7HFMA8yXOUSRQ,4344
|
|
7
7
|
snapctl/commands/generate.py,sha256=7z4nyqDuAieFmIg-XVIri2xkXPpDJd0E3uKYIfQtBqE,7891
|
|
8
|
-
snapctl/commands/snapend.py,sha256=
|
|
8
|
+
snapctl/commands/snapend.py,sha256=aYKeBZNwDMGWPsYl4qOCkVsrotkE2vzUobfg8AkRetw,30741
|
|
9
9
|
snapctl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
snapctl/config/constants.py,sha256=
|
|
10
|
+
snapctl/config/constants.py,sha256=sO4B9Ta7nth4_is9SmANoiX4QU6qyqPk74A5ckcKJ1Y,2735
|
|
11
11
|
snapctl/config/endpoints.py,sha256=VAeOmx3k3ukB-9XuGI65KtCJwFK-KFgzor-UWE8JU0g,297
|
|
12
12
|
snapctl/config/hashes.py,sha256=7jkMYfMAcgdque5PN10-B3QqwoXvtsuJKJr9dKZUvJ8,4139
|
|
13
13
|
snapctl/main.py,sha256=aaFB0insVsIKDp25Hc0J0t5JtIQJXxDgHbBwKaHVbBc,19619
|
|
@@ -16,8 +16,8 @@ snapctl/types/definitions.py,sha256=EQzLeiXkJ8ISRlCqHMviNVsWWpmhWjpKaOBLdlvOTmY,
|
|
|
16
16
|
snapctl/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
snapctl/utils/echo.py,sha256=V0qgjqqGXRiueMkq31enmNmdqciC8S90qGRcK8UupXA,1090
|
|
18
18
|
snapctl/utils/helper.py,sha256=XSn0x46mED86kQU1UlmuvJY9GsXO3Ncoba18Lb6FE8k,5522
|
|
19
|
-
snapctl-0.38.
|
|
20
|
-
snapctl-0.38.
|
|
21
|
-
snapctl-0.38.
|
|
22
|
-
snapctl-0.38.
|
|
23
|
-
snapctl-0.38.
|
|
19
|
+
snapctl-0.38.4.dist-info/LICENSE,sha256=6AcXm54KFSpmUI1ji9NIBd4Xl-DtjTqiyjBzfVb_CEk,2804
|
|
20
|
+
snapctl-0.38.4.dist-info/METADATA,sha256=zQvVPy5BjBaEdaBoLvm26e_PF7xLfTBoaq1i9qpBQ5s,21967
|
|
21
|
+
snapctl-0.38.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
22
|
+
snapctl-0.38.4.dist-info/entry_points.txt,sha256=tkKW9MzmFdRs6Bgkv29G78i9WEBK4WIOWunPfe3t2Wg,44
|
|
23
|
+
snapctl-0.38.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|