[freeside-commits] freeside/FS/FS/part_export domreg_opensrs.pm, 1.2, 1.3
Richard Siddall
rsiddall at wavetail.420.am
Sat May 16 12:27:46 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv17182/FS/FS/part_export
Modified Files:
domreg_opensrs.pm
Log Message:
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.)
Index: domreg_opensrs.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/domreg_opensrs.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- domreg_opensrs.pm 16 May 2009 02:29:54 -0000 1.2
+++ domreg_opensrs.pm 16 May 2009 19:27:44 -0000 1.3
@@ -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