Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cleanup volume dir if create volume failed
Volume path should be cleaned up if create volume failed. Otherwise, the same volume will be created failed again next time with a 'file exists' error on os.Mkdir. Signed-off-by: baijia <baijia.wr@antgroup.com>
- Loading branch information
baijia
committed
Mar 27, 2024
1 parent
e9e7186
commit 1007842
Showing
1 changed file
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters