Skip to content

Commit 5187f4c

Browse files
committed
minor fix for s3fs. Sometimes _init() gives None
1 parent 57c5e2d commit 5187f4c

File tree

1 file changed

+1
-1
lines changed
  • hubblestack/extmods/fileserver

1 file changed

+1
-1
lines changed

hubblestack/extmods/fileserver/s3fs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def update():
125125
"""
126126
metadata = _init()
127127

128-
if S3_SYNC_ON_UPDATE:
128+
if S3_SYNC_ON_UPDATE and metadata:
129129
# sync the buckets to the local cache
130130
log.info('Syncing local cache from S3...')
131131
for saltenv, env_meta in six.iteritems(metadata):

0 commit comments

Comments
 (0)