[Bps-public-commit] r16829 - sd/trunk/lib/App/SD

jesse at bestpractical.com jesse at bestpractical.com
Thu Nov 13 11:56:49 EST 2008


Author: jesse
Date: Thu Nov 13 11:56:47 2008
New Revision: 16829

Modified:
   sd/trunk/lib/App/SD/ForeignReplica.pm

Log:
* Remove the dependency on instantiating a new CLI object

Modified: sd/trunk/lib/App/SD/ForeignReplica.pm
==============================================================================
--- sd/trunk/lib/App/SD/ForeignReplica.pm	(original)
+++ sd/trunk/lib/App/SD/ForeignReplica.pm	Thu Nov 13 11:56:47 2008
@@ -91,9 +91,8 @@
 sub remote_id_for_uuid {
     my ( $self, $uuid_or_luid ) = @_;
 
-    # XXX: should not access CLI handle
     my $ticket = Prophet::Record->new(
-        handle => Prophet::CLI->new->app_handle->handle,
+        handle => $self->app_handle->handle,
         type   => 'ticket'
     );
     $ticket->load( $uuid_or_luid =~ /^\d+$/? 'luid': 'uuid', $uuid_or_luid );
@@ -112,9 +111,8 @@
         }
     );
 
-    # XXX: should not access CLI handle
     my $ticket = Prophet::Record->new(
-        handle => Prophet::CLI->new->app_handle->handle,
+        handle => $self->app_handle->handle,
         type   => 'ticket'
     );
     $ticket->load( uuid => $args{'uuid'} );



More information about the Bps-public-commit mailing list