Explorar o código

Fix transfer schedule update for `auto_deploy` option

Daniel Vincze hai 1 ano
pai
achega
c068ff7fbc
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      coriolis/db/api.py

+ 4 - 1
coriolis/db/api.py

@@ -367,7 +367,10 @@ def update_transfer_schedule(context, transfer_id, schedule_id,
     schedule = get_transfer_schedule(context, transfer_id, schedule_id)
     if pre_update_callable:
         pre_update_callable(schedule=schedule)
-    for val in ["schedule", "expiration_date", "enabled", "shutdown_instance"]:
+    updateable_attributes = [
+        "schedule", "expiration_date", "enabled", "shutdown_instance",
+        "auto_deploy"]
+    for val in updateable_attributes:
         if val in updated_values:
             setattr(schedule, val, updated_values[val])
     if post_update_callable: