[Pkg-debile-commits] [debile-master] 99/126: Fixed non commited machine ping

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:22 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch scan-build-html
in repository debile-master.

commit 293bf91136176288cbb99bc8bad3f6ea51791e5c
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Fri Jul 26 23:18:25 2013 +0200

    Fixed non commited machine ping
---
 lucy/orm.py    |    3 ---
 lucy/server.py |    6 ++++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/lucy/orm.py b/lucy/orm.py
index c824263..b753623 100644
--- a/lucy/orm.py
+++ b/lucy/orm.py
@@ -29,9 +29,6 @@ class Machine(Base):
     gpg_fingerprint = Column(String(100))
     password = Column(String)
 
-    def ping(self):
-        last_ping = dt.datetime.utcnow()
-
     def serialize(self):
         return row2dict(self)
 
diff --git a/lucy/server.py b/lucy/server.py
index f260792..2538b9d 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -191,7 +191,7 @@ class LucyInterface(object):
             send_failed_email(job, package, report)
 
         return 
-        #return rid
+    #return rid
 
     @machine_method
     def close_job(self, job_id):
@@ -249,7 +249,9 @@ class LucyAuthMixIn(SimpleXMLRPCRequestHandler):
             machine = session.query(Machine).filter(Machine.name == machine_name).one()
             if machine.password == password:
                 NAMESPACE.machine = machine
-                machine.ping()
+                # PING !
+                machine.last_ping = dt.datetime.utcnow()
+                session.commit()
                 return True
         except NoResultFound, e:
             logging.error("Machine claiming name %s does not exist", machine_name)        

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git



More information about the Pkg-debile-commits mailing list