twc-cli 2.4.0__tar.gz → 2.4.1__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 twc-cli might be problematic. Click here for more details.

Files changed (33) hide show
  1. {twc_cli-2.4.0 → twc_cli-2.4.1}/PKG-INFO +1 -1
  2. {twc_cli-2.4.0 → twc_cli-2.4.1}/pyproject.toml +1 -1
  3. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/__version__.py +1 -1
  4. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/domain.py +1 -1
  5. {twc_cli-2.4.0 → twc_cli-2.4.1}/CHANGELOG.md +0 -0
  6. {twc_cli-2.4.0 → twc_cli-2.4.1}/COPYING +0 -0
  7. {twc_cli-2.4.0 → twc_cli-2.4.1}/README.md +0 -0
  8. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/__init__.py +0 -0
  9. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/__main__.py +0 -0
  10. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/api/__init__.py +0 -0
  11. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/api/base.py +0 -0
  12. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/api/client.py +0 -0
  13. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/api/exceptions.py +0 -0
  14. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/api/types.py +0 -0
  15. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/apiwrap.py +0 -0
  16. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/__init__.py +0 -0
  17. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/account.py +0 -0
  18. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/balancer.py +0 -0
  19. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/common.py +0 -0
  20. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/config.py +0 -0
  21. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/database.py +0 -0
  22. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/firewall.py +0 -0
  23. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/image.py +0 -0
  24. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/kubernetes.py +0 -0
  25. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/project.py +0 -0
  26. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/server.py +0 -0
  27. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/ssh_key.py +0 -0
  28. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/storage.py +0 -0
  29. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/commands/vpc.py +0 -0
  30. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/fmt.py +0 -0
  31. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/typerx.py +0 -0
  32. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/utils.py +0 -0
  33. {twc_cli-2.4.0 → twc_cli-2.4.1}/twc/vars.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: twc-cli
3
- Version: 2.4.0
3
+ Version: 2.4.1
4
4
  Summary: Timeweb Cloud Command Line Interface.
5
5
  Home-page: https://github.com/timeweb-cloud/twc
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "twc-cli"
3
- version = "2.4.0"
3
+ version = "2.4.1"
4
4
  description = "Timeweb Cloud Command Line Interface."
5
5
  authors = ["ge <dev@timeweb.cloud>"]
6
6
  homepage = "https://github.com/timeweb-cloud/twc"
@@ -12,5 +12,5 @@
12
12
  import sys
13
13
 
14
14
 
15
- __version__ = "2.4.0"
15
+ __version__ = "2.4.1"
16
16
  __pyversion__ = sys.version.replace("\n", "")
@@ -365,7 +365,7 @@ def domain_add_dns_record(
365
365
  # underscores to this function.
366
366
  if record_type.lower() == "txt":
367
367
  # 'ftp.example.org' --> 'ftp'
368
- subdomain = subdomain.split(".")[: offset - 1][0]
368
+ subdomain = ".".join(subdomain.split(".")[:-offset])
369
369
 
370
370
  response = client.add_domain_dns_record(
371
371
  domain_name, record_type, value, subdomain, priority
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