atk-common 3.6.0__py3-none-any.whl → 3.7.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.
- atk_common/classes/docker_handler.py +4 -1
- atk_common/classes/error_handler.py +1 -1
- atk_common/interfaces/docker_handler_interface.py +1 -0
- {atk_common-3.6.0.dist-info → atk_common-3.7.0.dist-info}/METADATA +1 -1
- {atk_common-3.6.0.dist-info → atk_common-3.7.0.dist-info}/RECORD +8 -8
- {atk_common-3.6.0.dist-info → atk_common-3.7.0.dist-info}/WHEEL +0 -0
- {atk_common-3.6.0.dist-info → atk_common-3.7.0.dist-info}/licenses/license.txt +0 -0
- {atk_common-3.6.0.dist-info → atk_common-3.7.0.dist-info}/top_level.txt +0 -0
@@ -8,7 +8,7 @@ class DockerHandler(IDockerHandler):
|
|
8
8
|
self.logger = logger
|
9
9
|
self.image_name = image_name
|
10
10
|
self.image_version = image_version
|
11
|
-
self.set_container_metadata()
|
11
|
+
self.container_data = self.set_container_metadata()
|
12
12
|
|
13
13
|
def get_image_name_and_version(self, tags):
|
14
14
|
if tags:
|
@@ -74,3 +74,6 @@ class DockerHandler(IDockerHandler):
|
|
74
74
|
data['containerName'] = self.image_name
|
75
75
|
self.create_container_log(data)
|
76
76
|
return data
|
77
|
+
|
78
|
+
def get_container_metadata(self):
|
79
|
+
return self.container_data
|
@@ -42,7 +42,7 @@ class ErrorHandler(IErrorHandler):
|
|
42
42
|
data['message'] = self.get_message(error)
|
43
43
|
data['method'] = method
|
44
44
|
data['timestamp'] = get_utc_date_time_str()
|
45
|
-
data['containerInfo'] = self.docker_handler.
|
45
|
+
data['containerInfo'] = self.docker_handler.get_container_metadata()
|
46
46
|
self.create_error_log(data)
|
47
47
|
return Response(
|
48
48
|
response=json.dumps(data),
|
@@ -18,9 +18,9 @@ atk_common/rabbitmq_consumer.py,sha256=4MhuwZs47Jt1fX4sUxr1MKRe7o2QRbPe9_utXEsa8
|
|
18
18
|
atk_common/response_utils.py,sha256=AxlmwkFoDU5XcFOzBQiuZxAQgswihpKXHSo1T0JJw3Q,556
|
19
19
|
atk_common/classes/__init__.py,sha256=O_VHYxAilmoz3i9L6jkwS-JZ4UaTezdhFiA5liNl1lY,532
|
20
20
|
atk_common/classes/bo_logger.py,sha256=pEdk4bl0Vr60yWVihT7Fm395lMmO8JBBNeEhtDyIO5c,2250
|
21
|
-
atk_common/classes/docker_handler.py,sha256=
|
21
|
+
atk_common/classes/docker_handler.py,sha256=VNJecc2ZWcpwNBa61QTGM_kYrsoZTjktMcFRFGF4xI4,3048
|
22
22
|
atk_common/classes/env_handler.py,sha256=h3snKwHwDvfc2dt1vgHasqv8n_vnsI9J2MAr-XM5oow,1283
|
23
|
-
atk_common/classes/error_handler.py,sha256=
|
23
|
+
atk_common/classes/error_handler.py,sha256=D2oILLc8VeZmd16PuJsjfu7g0Q6kCWazt8FPa3gJamQ,3268
|
24
24
|
atk_common/classes/http_response_handler.py,sha256=l8CfntLPRHbB1nfUPPGnmTvQMAM29CVK4THG4FK1_4k,2128
|
25
25
|
atk_common/classes/rabbitmq_consumer.py,sha256=jct1UnfP-PU3IeWW2S_9dQ7FxmY0_M8YwZadFMv52j8,2936
|
26
26
|
atk_common/enums/__init__.py,sha256=hOSoKWIBUpRFaMN2tNJiel6iGI1MHj229OYnU1J8Jg0,2636
|
@@ -64,7 +64,7 @@ atk_common/enums/speed_control_stop_reason.py,sha256=pvLS6fpDhsCiIDAmiQBsHctxZnq
|
|
64
64
|
atk_common/enums/test_image_type_enum.py,sha256=HUjxJorehnzRXMNF2uHk2DrAJ3Y_ajQvp0jW-mtlOhU,140
|
65
65
|
atk_common/enums/violation_type_enum.py,sha256=01qTHOj-O8bOc-nwIHVnxLosm4cusD_YuqXM3ZsiRRk,86
|
66
66
|
atk_common/interfaces/__init__.py,sha256=HynEg28Uy3msO7qd__VxajTasSe9-Evpj9yi3Uw2NTo,508
|
67
|
-
atk_common/interfaces/docker_handler_interface.py,sha256=
|
67
|
+
atk_common/interfaces/docker_handler_interface.py,sha256=hs71uNcFvSbTqRvcL4XarHx6DONP1J7MrUUz-oO28bM,458
|
68
68
|
atk_common/interfaces/env_handler_interface.py,sha256=yrmtTplH5tnuOAs7CW5RtzLMTE5q9sdzTYjiS2naNQQ,300
|
69
69
|
atk_common/interfaces/error_handler_interface.py,sha256=ErhQ69T3fCYUl6sS5GwiMgW-znapmGcmgWLR2QLNu8c,506
|
70
70
|
atk_common/interfaces/http_response_handler_interface.py,sha256=QjDmhVj4AnUyoRtSHk_sfFPI-cto6TV7Mx2_87tiOrs,185
|
@@ -80,7 +80,7 @@ atk_common/utils/hash_utils.py,sha256=S_9o89CdI4lUQbVaqc85TDcqyDNuo30_E3VBaOrZKk
|
|
80
80
|
atk_common/utils/http_utils.py,sha256=eSRuQeDgN0ISQdByZqE6cIGXoorcAXz7PEtVntHUKAo,670
|
81
81
|
atk_common/utils/internal_response_utils.py,sha256=2X9eLFEy1pO3Aesj1IRXg2yprwNcBDM5_dXaA5vfmMI,694
|
82
82
|
atk_common/utils/mq_utils.py,sha256=DmVcXIZHG45p7cQVvgen6OT8QbW_UifFFJGJBybTkJQ,1835
|
83
|
-
atk_common-3.
|
83
|
+
atk_common-3.7.0.dist-info/licenses/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
|
84
84
|
atk_package/__init__.py,sha256=okIFEefQhQrw6DZg6oCEVWsEdkVCk-57VXBW0IUG_wU,834
|
85
85
|
atk_package/datetime_utils.py,sha256=qsVF7l90P1-xukG2tV_jLqG9J_Yfl5wTpyfrdPBlyMo,239
|
86
86
|
atk_package/env_utils.py,sha256=bXOrxM3fZUslqfmZt75iphbEJHbG4riJa8XOVzPwIII,313
|
@@ -93,7 +93,7 @@ atk_package/enums/__init__.py,sha256=EtUr_--MQj1Rc_R0sF_ELXIThmhpfmhDWq3YaK9oQMk
|
|
93
93
|
atk_package/enums/command_status_enum.py,sha256=M2Nln27a_DbzI07-gfytWQk2X087JhkU6Fmard5qVHs,127
|
94
94
|
atk_package/enums/speed_control_status_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
|
95
95
|
shared_python_atk_enforcement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
96
|
-
atk_common-3.
|
97
|
-
atk_common-3.
|
98
|
-
atk_common-3.
|
99
|
-
atk_common-3.
|
96
|
+
atk_common-3.7.0.dist-info/METADATA,sha256=z_2RpVEYqcDqRNOfOY6kNmiGSnIWVZSBjkQZSUehQjg,1760
|
97
|
+
atk_common-3.7.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
98
|
+
atk_common-3.7.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
|
99
|
+
atk_common-3.7.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|