mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 06:06:57 +00:00
Merge pull request #2097 from mikemccracken/2018-01-19/report-storage-destroy
storage: treat return value from ops->destroy as int
This commit is contained in:
commit
95220ee6e0
@ -603,13 +603,14 @@ bool storage_destroy(struct lxc_conf *conf)
|
||||
{
|
||||
struct lxc_storage *r;
|
||||
bool ret = false;
|
||||
int destroy_rv = 0;
|
||||
|
||||
r = storage_init(conf);
|
||||
if (!r)
|
||||
return ret;
|
||||
|
||||
ret = r->ops->destroy(r);
|
||||
if (ret == 0)
|
||||
destroy_rv = r->ops->destroy(r);
|
||||
if (destroy_rv == 0)
|
||||
ret = true;
|
||||
|
||||
storage_put(r);
|
||||
|
Loading…
Reference in New Issue
Block a user