pam-python 0.1.7__tar.gz → 0.1.8__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.
- {pam_python-0.1.7/pam_python.egg-info → pam_python-0.1.8}/PKG-INFO +1 -1
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/task_manager.py +15 -3
- {pam_python-0.1.7 → pam_python-0.1.8/pam_python.egg-info}/PKG-INFO +1 -1
- {pam_python-0.1.7 → pam_python-0.1.8}/setup.py +1 -1
- {pam_python-0.1.7 → pam_python-0.1.8}/LICENSE.txt +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/README.md +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/__init__.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/api.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/cli.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/interface_task_manager.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/models/__init__.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/models/request_command.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/server.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/service.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/temp_file_utils.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/buildcmd/pamb +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/buildcmd/pamb-base.sh +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/docker/Dockerfile +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/init/dockerignore.tmpl +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/init/gitignore.tmpl +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/init/main.tmpl +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/init/pylintrc.tmpl +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/service/functions.tmpl +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/service/service.test.tmpl +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/service/service.yaml +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/templates/service/service_class.tmpl +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/tester_task.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam/utils.py +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam_python.egg-info/SOURCES.txt +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam_python.egg-info/dependency_links.txt +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam_python.egg-info/entry_points.txt +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam_python.egg-info/requires.txt +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/pam_python.egg-info/top_level.txt +0 -0
- {pam_python-0.1.7 → pam_python-0.1.8}/setup.cfg +0 -0
|
@@ -137,7 +137,11 @@ class TaskManager(ITaskManager):
|
|
|
137
137
|
|
|
138
138
|
def handle_response(response):
|
|
139
139
|
"""Logs the response from the API."""
|
|
140
|
-
|
|
140
|
+
try:
|
|
141
|
+
response_data = response.json()
|
|
142
|
+
except ValueError:
|
|
143
|
+
response_data = response.text
|
|
144
|
+
log(f"Response from {endpoint}: {response_data}")
|
|
141
145
|
|
|
142
146
|
def api_call_wrapper():
|
|
143
147
|
"""Wrapper for the API call to handle response."""
|
|
@@ -157,7 +161,11 @@ class TaskManager(ITaskManager):
|
|
|
157
161
|
|
|
158
162
|
def handle_upload_response(response):
|
|
159
163
|
"""Logs the response after the upload completes."""
|
|
160
|
-
|
|
164
|
+
try:
|
|
165
|
+
response_data = response.json()
|
|
166
|
+
except ValueError:
|
|
167
|
+
response_data = response.text
|
|
168
|
+
log(f"Response from upload to {endpoint}: {response_data}")
|
|
161
169
|
|
|
162
170
|
def upload_wrapper():
|
|
163
171
|
"""Wrapper for the upload to handle response logging."""
|
|
@@ -176,7 +184,11 @@ class TaskManager(ITaskManager):
|
|
|
176
184
|
|
|
177
185
|
def handle_report_response(response):
|
|
178
186
|
"""Logs the response after the report upload completes."""
|
|
179
|
-
|
|
187
|
+
try:
|
|
188
|
+
response_data = response.json()
|
|
189
|
+
except ValueError:
|
|
190
|
+
response_data = response.text
|
|
191
|
+
log(f"Response from report upload to {endpoint}: {response_data}")
|
|
180
192
|
|
|
181
193
|
def upload_wrapper():
|
|
182
194
|
"""Wrapper for the report upload to handle response logging."""
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|