Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
updating wording

Co-authored-by: Mark Boyd <[email protected]>
Signed-off-by: Jason Gambino <[email protected]>
  • Loading branch information
JasonTheMain and markdboyd authored Nov 14, 2024
1 parent f810f53 commit dbacad2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jobs/upload-dashboards-objects/templates/bin/import-objects
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -65,15 +65,15 @@ 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:
error_response = r.json()
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',
Expand Down

0 comments on commit dbacad2

Please sign in to comment.