summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorrsiddall <rsiddall>2009-05-16 19:27:44 +0000
committerrsiddall <rsiddall>2009-05-16 19:27:44 +0000
commitc196542418599a740405d37454b529d5c98276be (patch)
tree886c277c96eb806378ce056fe751715c107d456b /FS
parent4f1256b03a041ddf12faa8e7891065ad5e1e9399 (diff)
Defer use of Net::OpenSRS so that failure to install the module doesn't stop
Apache from starting. (This causes attempts to register domains to fail instead.)
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_export/domreg_opensrs.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/part_export/domreg_opensrs.pm b/FS/FS/part_export/domreg_opensrs.pm
index 5d5c59530..df8b40006 100644
--- a/FS/FS/part_export/domreg_opensrs.pm
+++ b/FS/FS/part_export/domreg_opensrs.pm
@@ -7,7 +7,6 @@ use FS::Conf;
use FS::part_export::null;
use FS::svc_domain;
use FS::part_pkg;
-use Net::OpenSRS;
=head1 NAME
@@ -193,6 +192,9 @@ sub _export_insert {
return if $svc_domain->action eq 'I'; # Ignoring registration, just doing DNS
+ eval "use Net::OpenSRS;";
+ return $@ if $@;
+
# Get the TLD of the new domain
my @bits = split /\./, $svc_domain->domain;