aap-utils 0.2.4__py3-none-any.whl → 0.2.6__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.
aap_utils/cli.py CHANGED
@@ -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
@@ -0,0 +1,8 @@
1
+ aap_utils/__init__.py,sha256=g6G3i3a5ANDJWqFX2oPsLpP93aTaoTj0gkMQzeqQIJw,172
2
+ aap_utils/cli.py,sha256=UHDuP1lMXW4o0ED7K7LgYwnxZ7k1cuUNf03QbxcMXgs,3252
3
+ aap_utils/register.py,sha256=J9tukByU1mcy4SoaJOoGY8jjzL9JMuNTZGtCBSwwon0,3823
4
+ aap_utils-0.2.6.dist-info/METADATA,sha256=cWg6YTGx8dBMX4hMTvOb_fQSeSYEJKfQm6uLgbIlBsE,346
5
+ aap_utils-0.2.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
+ aap_utils-0.2.6.dist-info/entry_points.txt,sha256=K-h2toLoqFxAg4Bx2r7FWggKgYnAX9zp9s4Ms4r-d6s,49
7
+ aap_utils-0.2.6.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
8
+ aap_utils-0.2.6.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- aap_utils/__init__.py,sha256=g6G3i3a5ANDJWqFX2oPsLpP93aTaoTj0gkMQzeqQIJw,172
2
- aap_utils/cli.py,sha256=USZmJRGvMz8KYplPC33L3i3hT3db9zg_8J0Uf3lCS_k,2926
3
- aap_utils/register.py,sha256=J9tukByU1mcy4SoaJOoGY8jjzL9JMuNTZGtCBSwwon0,3823
4
- aap_utils-0.2.4.dist-info/METADATA,sha256=dRTxD9bVXbvqxukYgh5rbiT7H0L7EPq-NqwT6sHt3Nw,346
5
- aap_utils-0.2.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
- aap_utils-0.2.4.dist-info/entry_points.txt,sha256=K-h2toLoqFxAg4Bx2r7FWggKgYnAX9zp9s4Ms4r-d6s,49
7
- aap_utils-0.2.4.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
8
- aap_utils-0.2.4.dist-info/RECORD,,