aap-utils 0.2.4__tar.gz → 0.2.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aap_utils
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: A Python library for registering an IP address for AAP
5
5
  Author: Minh Dang
6
6
  Author-email: danghoangminh86@gmail.com
@@ -61,12 +61,17 @@ def publish_env():
61
61
  "tags": formatted_tags
62
62
  }
63
63
 
64
- print(f"Publishing environment: {data}")
64
+ print(f"Publishing environment: {username}/{image_name}:{" ".join(formatted_tags.split())}")
65
65
 
66
66
  try:
67
67
  response = requests.post(API_URL, json=data)
68
68
  if response.status_code == 200:
69
- print("✅ Successfully published the environment!")
69
+ response_json = response.json()
70
+ if response_json.get("result") == "success":
71
+ print("✅ Successfully published the environment!")
72
+ else:
73
+ error_message = response_json.get("error", "Unknown error occurred.")
74
+ print(f"❌ Failed to publish: {error_message}")
70
75
  else:
71
76
  print(f"❌ Failed to publish. Server responded with: {response.status_code}, {response.text}")
72
77
  except requests.RequestException as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aap_utils
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: A Python library for registering an IP address for AAP
5
5
  Author: Minh Dang
6
6
  Author-email: danghoangminh86@gmail.com
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="aap_utils", # The name of your library
5
- version="0.2.4",
5
+ version="0.2.6",
6
6
  description="A Python library for registering an IP address for AAP",
7
7
  author="Minh Dang",
8
8
  author_email="danghoangminh86@gmail.com",
File without changes
File without changes
File without changes