From dbacad224c1b300ab36d04571e46f94b15063a8d Mon Sep 17 00:00:00 2001 From: Jason Gambino Date: Thu, 14 Nov 2024 10:20:53 -0500 Subject: [PATCH] Apply suggestions from code review updating wording Co-authored-by: Mark Boyd Signed-off-by: Jason Gambino --- jobs/upload-dashboards-objects/templates/bin/import-objects | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jobs/upload-dashboards-objects/templates/bin/import-objects b/jobs/upload-dashboards-objects/templates/bin/import-objects index 5884535b..5554e0e2 100755 --- a/jobs/upload-dashboards-objects/templates/bin/import-objects +++ b/jobs/upload-dashboards-objects/templates/bin/import-objects @@ -45,7 +45,7 @@ if __name__ == "__main__": verify=ca ) if r.status_code == 200: - logging.info(f'NDJSON FILE {ndjson_output_path} updated sucessfully1') + logging.info(f'NDJSON FILE {ndjson_output_path} uploaded sucessfully') elif r.status_code == 409: put = session.put( '{}/api/saved_objects/_import?overwrite=true'.format( @@ -65,7 +65,7 @@ if __name__ == "__main__": logging.error(f"Error detils: {error_response}") except ValueError: logging.error(f"raw response: {put.text}") - logging.info(f'NDJSON FILE {ndjson_output_path} Failed to Upload1') + logging.info(f'Failed to upload NDJSON FILE {ndjson_output_path}') else: logging.error(f"Failed to upload file {ndjson_output_path}, status code: {r.status_code}") try: @@ -73,7 +73,7 @@ if __name__ == "__main__": logging.error(f"Error detils: {error_response}") except ValueError: logging.error(f"raw response: {r.text}") - logging.info(f'NDJSON FILE {ndjson_output_path} Failed to Upload2') + logging.info(f'Failed to upload NDJSON FILE {ndjson_output_path}') index_headers = { 'content-type': 'application/json',