Skip to content

Commit

Permalink
add missing return when src is not existed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Dec 26, 2023
1 parent 9a9d8aa commit d66b68e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions otaclient/app/create_standby/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ def preserve_persist_entry(
logger.warning(_err_msg)
if not src_missing_ok:
raise ValueError(_err_msg)
return

# for src as dir, cleanup dst_dirc,
# dive into src_dir and preserve everything under the src dir
Expand Down

0 comments on commit d66b68e

Please sign in to comment.