[freeside-commits] freeside/FS/FS/part_export domreg_opensrs.pm, 1.1.2.3, 1.1.2.4
Richard Siddall
rsiddall at wavetail.420.am
Sat May 16 12:29:33 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv17306/FS/FS/part_export
Modified Files:
Tag: FREESIDE_1_7_BRANCH
domreg_opensrs.pm
Log Message:
Defer loading Net::OpenSRS so that failure to install this module doesn't
stop Apache from starting. This will cause attempts to register domains to
fail instead.
Index: domreg_opensrs.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/domreg_opensrs.pm,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- domreg_opensrs.pm 16 May 2009 02:31:34 -0000 1.1.2.3
+++ domreg_opensrs.pm 16 May 2009 19:29:31 -0000 1.1.2.4
@@ -7,7 +7,6 @@
use FS::part_export::null;
use FS::svc_domain;
use FS::part_pkg;
-use Net::OpenSRS;
=head1 NAME
@@ -193,6 +192,9 @@
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;
More information about the freeside-commits
mailing list