提交 945c9170 编写于 作者: L Lucas Meneghel Rodrigues

virt.storage: Fix bug when checking for backup directory

By default, .get() on a dict will return None. Using None
in a os.path related function is going to throw an error.

So we can fix that issue by using an appropriate default
value that won't break os.path.isabs().
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 0fd61ec0
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册