don't pull HA modules for doc-generation

This commit is contained in:
Wolfgang Bumiller 2017-02-06 16:13:30 +01:00
parent 265faf1f21
commit 9f11fc5fa2

View File

@ -22,8 +22,15 @@ use PVE::INotify;
use PVE::Network;
use PVE::Firewall;
use PVE::API2::Firewall::VM;
use PVE::HA::Env::PVE2;
use PVE::HA::Config;
BEGIN {
if (!$ENV{PVE_GENERATING_DOCS}) {
require PVE::HA::Env::PVE2;
import PVE::HA::Env::PVE2;
require PVE::HA::Config;
import PVE::HA::Config;
}
}
use Data::Dumper; # fixme: remove