Bug fix
authorSapan Bhatia <gwsapan@gmail.com>
Tue, 22 Jul 2014 05:22:00 +0000 (01:22 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Tue, 22 Jul 2014 05:22:00 +0000 (01:22 -0400)
planetstack/ec2_observer/event_loop.py

index 3638b08..d9855eb 100644 (file)
@@ -295,10 +295,7 @@ class PlanetStackObserver:
                                                                if failed_objects:
                                                                        failed_step_objects.update(failed_objects)
 
-                                                               if (not deletion):
-                                                                       self.update_run_time(sync_step)
-                                                               else:
-                                                                       self.update_deletion_run_time(sync_step)
+                                                               self.update_run_time(sync_step,deletion)
                                                        except Exception,e:
                                                                logging.error('Model step failed. This seems like a misconfiguration or bug: %r. This error will not be relayed to the user!',e)
                                                                logger.log_exc(e)