pam-python 0.1.33__tar.gz → 0.1.34__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.33 → pam_python-0.1.34}/PKG-INFO +1 -1
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/service.py +11 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam_python.egg-info/PKG-INFO +1 -1
- {pam_python-0.1.33 → pam_python-0.1.34}/setup.py +1 -1
- {pam_python-0.1.33 → pam_python-0.1.34}/LICENSE.txt +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/README.md +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/__init__.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/api.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/cli.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/interface_task_manager.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/models/__init__.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/models/request_command.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/server.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/sqlite.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/task_manager.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/temp_file_utils.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/buildcmd/pamb +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/buildcmd/pamb-base.sh +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/docker/Dockerfile +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/init/AGENT.md +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/init/dockerignore.tmpl +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/init/gitignore.tmpl +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/init/main.tmpl +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/init/pylintrc.tmpl +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/init/run_unit_test.bat +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/init/run_unit_test.ps1 +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/init/run_unit_test.sh +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/service/functions.tmpl +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/service/service.test.tmpl +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/service/service.yaml +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/templates/service/service_class.tmpl +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/tester_task.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam/utils.py +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam_python.egg-info/SOURCES.txt +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam_python.egg-info/dependency_links.txt +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam_python.egg-info/entry_points.txt +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam_python.egg-info/requires.txt +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/pam_python.egg-info/top_level.txt +0 -0
- {pam_python-0.1.33 → pam_python-0.1.34}/setup.cfg +0 -0
|
@@ -80,6 +80,12 @@ class Service:
|
|
|
80
80
|
if not isinstance(report_json, dict):
|
|
81
81
|
raise ValueError("report_json must be a dictionary")
|
|
82
82
|
|
|
83
|
+
try:
|
|
84
|
+
pretty_report_json = json.dumps(report_json, indent=2, ensure_ascii=False, sort_keys=True)
|
|
85
|
+
except Exception:
|
|
86
|
+
pretty_report_json = str(report_json)
|
|
87
|
+
log(f"{self.request.service_name}: report_json\n{pretty_report_json}")
|
|
88
|
+
|
|
83
89
|
adapter_id = get_adapter_id(self.request.response_api)
|
|
84
90
|
service_name = self.request.service_name
|
|
85
91
|
token = self.request.token
|
|
@@ -129,6 +135,11 @@ class Service:
|
|
|
129
135
|
:param sqlite_file: Path to the SQLite file to upload.
|
|
130
136
|
:return: The uploaded file name if successful, or empty string if failed.
|
|
131
137
|
"""
|
|
138
|
+
dry_run = self.request.runtime_parameters.get("dry_run", "false")
|
|
139
|
+
if dry_run is not None and dry_run.lower() == "true":
|
|
140
|
+
log("Dry run mode will not upload sqlite.")
|
|
141
|
+
return sqlite_file
|
|
142
|
+
|
|
132
143
|
return self.task_manager.service_upload_sqlite(self, file_name, is_shared, sqlite_file)
|
|
133
144
|
|
|
134
145
|
def _exit(self) -> None:
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|