Skip to content
Permalink
Browse files

Merge pull request #1310 from bob-lee/clean-cloud-to-handle-leading-s…

…lash-properly

Clean cloud to handle leading slash properly
  • Loading branch information...
ccrisan committed Jun 13, 2019
2 parents 5c270d4 + 2d4eafd commit fee12aaefac1e28992795a25c5005d06f0114a33
Showing with 2 additions and 1 deletion.
  1. +2 −1 motioneye/uploadservices.py
@@ -1179,7 +1179,8 @@ def _save(services):
def clean_cloud(local_dir, data, info):
camera_id = info['camera_id']
service_name = info['service_name']
cloud_dir = info['cloud_dir']
cloud_dir_user = info['cloud_dir']
cloud_dir = [p.strip() for p in cloud_dir_user.split('/') if p.strip()][0]

logging.debug('clean_cloud(%s, %s, %s, %s)' % (camera_id, service_name, local_dir, cloud_dir))

0 comments on commit fee12aa

Please sign in to comment.
You can’t perform that action at this time.