freeside/FS/FS/part_export shellcommands.pm,1.12.4.19,1.12.4.20
ivan
ivan at pouncequick.420.am
Mon May 10 06:17:26 PDT 2004
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory pouncequick:/tmp/cvs-serv19094
Modified Files:
Tag: FREESIDE_1_4_BRANCH
shellcommands.pm
Log Message:
fall back to password changing in the case of blank suspension/unsuspension commands, like some exports
Index: shellcommands.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/shellcommands.pm,v
retrieving revision 1.12.4.19
retrieving revision 1.12.4.20
diff -u -d -r1.12.4.19 -r1.12.4.20
--- shellcommands.pm 3 May 2004 14:16:50 -0000 1.12.4.19
+++ shellcommands.pm 10 May 2004 13:17:24 -0000 1.12.4.20
@@ -176,13 +176,24 @@
sub _export_suspend {
my($self) = shift;
- $self->_export_command('suspend', @_);
+ $self->_export_command_or_super('suspend', @_);
}
sub _export_unsuspend {
my($self) = shift;
- $self->_export_command('unsuspend', @_);
+ $self->_export_command_or_super('unsuspend', @_);
}
+
+sub _export_command_or_super {
+ my($self, $action) = (shift, shift);
+ if ( $self->option($action) =~ /^\s*$/ ) {
+ my $method = "SUPER::_export_$action";
+ $self->$method(@_);
+ } else {
+ $self->_export_command($action, @_);
+ }
+};
+
sub _export_command {
my ( $self, $action, $svc_acct) = (shift, shift, shift);
More information about the freeside-commits
mailing list