Skip to content

Commit

Permalink
Update pydbapi TypeError text
Browse files Browse the repository at this point in the history
  • Loading branch information
simran committed May 12, 2020
1 parent c87207a commit ab7b978
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion salt/modules/hanamod.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ def extract_pydbapi(
'''
if not isinstance(software_folders, list):
raise TypeError(
"software_folders must be list, not {} type".format(type(software_folders).__name__)
"software_folders must be a list, not {} type".format(type(software_folders).__name__)
)
current_platform = hana.HanaInstance.get_platform()
tar_options_str = ('{} -xvf'.format(additional_extract_options)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/modules/test_hanamod.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,5 +923,5 @@ def test_extract_pydbapi_software_folders_type_error(self):
with pytest.raises(TypeError) as err:
pydbapi_file = hanamod.extract_pydbapi(
'PYDBAPI.tar.gz', software_folders, '/tmp/output', additional_extract_options='-l')
assert 'software_folders must be list, not {} type'.format(
assert 'software_folders must be a list, not {} type'.format(
type(software_folders).__name__) in str(err.value)

0 comments on commit ab7b978

Please sign in to comment.