Skip to content

Commit 3688bfd

Browse files
committed
Fix TypeError using alternate solution offered by @mkumykov
1 parent 3823f87 commit 3688bfd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def write_to_csv_file(filename, version_list):
6565

6666
if args.phase:
6767
new_list = list()
68-
for idx, version in enumerate(sorted_version_list):
69-
if sorted_version_list[idx]['phase'] == phase_map[args.phase]:
68+
for version in sorted_version_list:
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)