projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't load Net::Plesk until its needed, to prevent every install from depending on it
[freeside.git]
/
FS
/
FS
/
part_export
/
acct_plesk.pm
diff --git
a/FS/FS/part_export/acct_plesk.pm
b/FS/FS/part_export/acct_plesk.pm
index
e295a01
..
0028a2e
100644
(file)
--- a/
FS/FS/part_export/acct_plesk.pm
+++ b/
FS/FS/part_export/acct_plesk.pm
@@
-46,6
+46,9
@@
sub _export_insert {
sub _plesk_command {
my( $self, $method, $domain, @args ) = @_;
+
+ eval "use Net::Plesk'";
+ return $@ if $@;
local($Net::Plesk::DEBUG) = 1
if $self->option('debug');