Skip to content

Commit cf06468

Browse files
authored
Merge pull request #98 from lvalerio/master
make_vcsp_2018.py: Fixed uninitialzied variable
2 parents 98195ec + 6a9561e commit cf06468

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/make_vcsp_2018.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def _dir2item(path, directory, md5_enabled, lib_id):
127127
vcsp_type = VCSP_TYPE_OTHER
128128
folder = ""
129129
folder_md5 = ""
130+
is_vapp = ""
130131
for f in os.listdir(path):
131132
if f == ".DS_Store" or f == ''.join((directory, os.extsep, FORMAT)):
132133
continue
@@ -418,7 +419,7 @@ def make_vcsp_s3(lib_name, lib_path, skip_cert):
418419
update_items_json = False
419420

420421
response = s3_client.list_objects_v2(Bucket=bucket_name, Prefix=lib_folder_path, Delimiter="/")
421-
if response['CommonPrefixes']:
422+
if 'CommonPrefixes' in response:
422423
# skip items generation if no child folders
423424
for child in response['CommonPrefixes']:
424425
p = child['Prefix']

0 commit comments

Comments
 (0)