Updated backend status during call
authorSapan Bhatia <gwsapan@gmail.com>
Tue, 29 Apr 2014 04:42:40 +0000 (00:42 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Wed, 23 Jul 2014 20:07:58 +0000 (16:07 -0400)
planetstack/observer/syncstep.py

index 9c6975f..739e598 100644 (file)
@@ -62,6 +62,7 @@ class SyncStep:
                     self.check_dependencies(o,f) # Raises exception if failed
                 self.sync_record(o)
                 o.enacted = datetime.now() # Is this the same timezone? XXX
+                o.backend_status = "OK") 
                 o.save(update_fields=['enacted'])
             except Exception,e:
                 try: