Skip to content

Commit 9fa7e66

Browse files
authored
Merge pull request #89 from avnes/hotfix/indices-must-be-integers-or-slices-not-str
Create a hotfix for TypeError when using --phase argument
2 parents f52598c + 3688bfd commit 9fa7e66

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.restconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"baseurl": "https://blackduck.test.maerskdev.net/",
3+
"api_token": "NThmZTA3MGUtNWJkZi00ZjlhLWIzZjgtZjFhYjNhOGQwYTM0OjAxYmRhOTU4LTJmZjctNDdhMy1iNDAzLTM2YThlYWI4N2U1ZQ==",
4+
"insecure": true,
5+
"debug": false
6+
}

examples/get_project_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def write_to_csv_file(filename, version_list):
6666
if args.phase:
6767
new_list = list()
6868
for version in sorted_version_list:
69-
if sorted_version_list['phase'] == phase_map[args.phase]:
69+
if version['phase'] == phase_map[args.phase]:
7070
new_list.append(version)
7171
sorted_version_list = new_list
7272
if args.limit:

0 commit comments

Comments
 (0)