[asterisk-scf-commits] asterisk-scf/integration/testsuite.git branch "review" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue May 24 16:01:04 CDT 2011


branch "review" has been updated
       via  5cf310bf212060d28874807ce2374e8df99d71c6 (commit)
      from  0ef960688ea090ab072149af52d385ca234e7606 (commit)

Summary of changes:
 remote.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit 5cf310bf212060d28874807ce2374e8df99d71c6
Author: Darren Sessions <dsessions at digium.com>
Date:   Tue May 24 16:01:01 2011 -0500

    minor tweak to the file send/recv functions in the remote script.

diff --git a/remote.py b/remote.py
index f773c6b..81ef27e 100755
--- a/remote.py
+++ b/remote.py
@@ -198,13 +198,13 @@ class RemoteManagement(object):
         return {'success':True}
 
     def sendFileToRemote(self, fn):
-        with open('%s/tmp/%s' % (cwd, fn), "rb") as fh:
-            return xmlrpclib.Binary(fh.read())
+        with open('%s/tmp/%s' % (cwd, fn), "wb") as fh:
+            fh.write(rpc.sendFileToRemote().data)
 
     def getFileFromRemote(self, remote, fn):
         rpc = xmlrpclib.ServerProxy('http://%s:8000/' % remote)
-        with open('%s/tmp/%s' % (cwd, fn), "wb") as fh:
-            fh.write(rpc.sendFileToRemote().data)
+        with open('%s/tmp/%s' % (cwd, fn), "rb") as fh:
+            return xmlrpclib.Binary(fh.read())
 
     def reset(self):
         os.chdir('%s/tmp' % cwd)

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/testsuite.git



More information about the asterisk-scf-commits mailing list