Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ notifications:

matrix:
include:
- python: 3.7
- python: 3.8
- python: 3.9
- python: 3.10
- python: 3.11

before_install:
- npm install -g npm@latest || npm install -g npm@9
Expand Down
8 changes: 0 additions & 8 deletions ibm_vpc/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import uuid
from ibm_vpc.version import __version__

HEADER_NAME_X_CORRELATION_ID = 'X-Correlation-Id'
HEADER_NAME_X_REQUEST_ID = 'X-Request-Id'
HEADER_NAME_USER_AGENT = 'User-Agent'
SDK_NAME = 'vpc-python-sdk'
Expand All @@ -36,12 +35,6 @@ def get_system_info():
platform.system(), # OS
platform.python_version()) # Python version

def get_x_correlation_id():
"""
Get the value to be sent in the X-Correlation-Id header.
"""
return str(uuid.uuid4())

def get_x_request_id():
"""
Get the value to be sent in the X-Request-Id header.
Expand All @@ -65,7 +58,6 @@ def get_sdk_headers(service_name, service_version, operation_id):

"""
headers = {}
headers[HEADER_NAME_X_CORRELATION_ID] = get_x_correlation_id()
headers[HEADER_NAME_X_REQUEST_ID] = get_x_request_id()
headers[HEADER_NAME_USER_AGENT] = get_user_agent()
return headers
Loading