atk-common 1.7.0__py3-none-any.whl → 1.8.0__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.
@@ -22,6 +22,10 @@ def create_port_item(port, binding):
22
22
  data['binding'] = binding
23
23
  return data
24
24
 
25
+ def create_container_log(container_data):
26
+ log_str = 'Container name: ' + container_data['containerName'] + ', image name: ' + container_data['imageName'] + ', image version: ' + container_data['imageVersion']
27
+ add_log_item(log_str)
28
+
25
29
  def get_current_container_info():
26
30
  try:
27
31
  data = {}
@@ -46,7 +50,8 @@ def get_current_container_info():
46
50
  data['ports'].append(create_port_item(container_port, f"{binding['HostIp']}:{binding['HostPort']}"))
47
51
  else:
48
52
  data['ports'].append(create_port_item(container_port, None))
53
+ create_container_log(data)
49
54
  return data
50
55
  except Exception as e:
51
- add_log_item("Error getting container info:" + str(e))
56
+ add_log_item("Error getting container data:" + str(e))
52
57
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atk_common
3
- Version: 1.7.0
3
+ Version: 1.8.0
4
4
  Summary: ATK common methods
5
5
  Home-page: https://github.com/pypa/atk_common
6
6
  Author: Roger
@@ -1,6 +1,6 @@
1
1
  atk_common/__init__.py,sha256=9aedYjZ5adS3zor4HPYubrFAmq2LuxhdtfwUKjDS6dE,956
2
2
  atk_common/datetime_utils.py,sha256=qsVF7l90P1-xukG2tV_jLqG9J_Yfl5wTpyfrdPBlyMo,239
3
- atk_common/docker_utils.py,sha256=AY3SoMVm8wZkTnlJtQPhyOVoKxuKbyS2ICIguCrED6Y,1804
3
+ atk_common/docker_utils.py,sha256=nkUhp2OhwJsm41JDujHDY-JxQfdDjy91duprH59Esfk,2084
4
4
  atk_common/env_utils.py,sha256=66v-S0vlkJNaun6ay1XcOGRtYJb4Ce4odJsWxuaHsQc,373
5
5
  atk_common/error_utils.py,sha256=JBc-yl5_29BSZ6d2kZBEX3X17qCDvEa_GZ7FC7sYwdc,2115
6
6
  atk_common/http_utils.py,sha256=GF1OTTgsOg2iN60r6Da2oWU8vOOuQzsGrEwMKcOJtwE,866
@@ -22,8 +22,8 @@ atk_package/enums/__init__.py,sha256=oW0aVnwewfH6sNu14jjZ5_uP4iRN4pRmGdTNC204rHo
22
22
  atk_package/enums/command_status_enum.py,sha256=M2Nln27a_DbzI07-gfytWQk2X087JhkU6Fmard5qVHs,127
23
23
  atk_package/enums/speed_control_status_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
24
24
  shared_python_atk_enforcement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- atk_common-1.7.0.dist-info/METADATA,sha256=jKzI0ZFXA0TjvY43_0Yw39s2eLf5L21Xk51QfLhCxdk,1193
26
- atk_common-1.7.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
27
- atk_common-1.7.0.dist-info/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
28
- atk_common-1.7.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
29
- atk_common-1.7.0.dist-info/RECORD,,
25
+ atk_common-1.8.0.dist-info/METADATA,sha256=3miz_NrQZ774rE8iWZM8lRhA9fsy-jUv10ZaO0rmZlo,1193
26
+ atk_common-1.8.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
27
+ atk_common-1.8.0.dist-info/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
28
+ atk_common-1.8.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
29
+ atk_common-1.8.0.dist-info/RECORD,,