Skip to content

Commit 30ceaa9

Browse files
avinash1IBMGitHub Enterprise
authored and
GitHub Enterprise
committed
Release 2.0.3
1 parent fe7b25c commit 30ceaa9

File tree

6 files changed

+451
-134
lines changed

6 files changed

+451
-134
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## 2.0.3
4+
5+
### Content
6+
7+
#### Defect Fixes
8+
9+
* Internal fixes and improvements
10+
311
## 2.0.2
412

513
### Content

ibm_cos_sdk_config/common.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,15 @@
2323

2424
HEADER_NAME_USER_AGENT = 'User-Agent'
2525
SDK_NAME = 'ibm-cos-resource-config-python-sdk'
26-
"""
27-
This file is auto-generated using the sdk-generation tool.
28-
The generated SDK_NAME value was ibm-cos-sdk-python-config because it was picked up from the SDK repo.
2926

30-
We have manually edited the SDK_NAME to be ibm-cos-resource-config-python-sdk.
31-
Ensure that we don't touch this value if we decide to run the sdk-generation tool again in the future.
32-
"""
3327

3428
def get_system_info():
3529
"""
3630
Get information about the system to be inserted into the User-Agent header.
3731
"""
38-
return 'lang={0}; arch={1}; os={2}; python.version={3}'.format('python',
39-
platform.machine(), # Architecture
40-
platform.system(), # OS
41-
platform.python_version()) # Python version
32+
return 'lang={0}; arch={1}; os={2}; python.version={3}'.format(
33+
'python', platform.machine(), platform.system(), platform.python_version() # Architecture # OS
34+
) # Python version
4235

4336

4437
def get_user_agent():
@@ -52,18 +45,18 @@ def get_user_agent():
5245

5346

5447
def get_sdk_headers(service_name, service_version, operation_id):
55-
#pylint: disable=unused-argument
48+
# pylint: disable=unused-argument
5649
"""
5750
Get the request headers to be sent in requests by the SDK.
5851
5952
If you plan to gather metrics for your SDK, the User-Agent header value must
6053
be a string similar to the following:
61-
ibm-cos-resource-config-python-sdk/2.0.0 (lang=python; arch=x86_64; os=Linux; python.version=3.7.4)
54+
ibm-cos-resource-config-python-sdk/2.0.1 (lang=python; arch=x86_64; os=Linux; python.version=3.7.4)
6255
6356
In the example above, the analytics tool will parse the user-agent header and
6457
use the following properties:
6558
"ibm-cos-resource-config-python-sdk" - the name of your sdk
66-
"2.0.0"- the version of your sdk
59+
"2.0.1"- the version of your sdk
6760
"lang=python" - the language of the current sdk
6861
"arch=x86_64; os=Linux; python.version=3.7.4" - system information
6962

0 commit comments

Comments
 (0)