conf: do not run the "mount" hooks twice

Regression introduced by 8353b4c90e

Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
This commit is contained in:
Felix Abecassis 2018-03-14 16:20:18 -07:00
parent 55fc780b23
commit 1a2cf89d99

View File

@ -3368,7 +3368,7 @@ int lxc_setup(struct lxc_handler *handler)
}
ret = run_lxc_hooks(name, "mount", lxc_conf, NULL);
if (run_lxc_hooks(name, "mount", lxc_conf, NULL)) {
if (ret < 0) {
ERROR("Failed to run mount hooks");
return -1;
}