瀏覽代碼

fix(api): sync RRsets from pdns after dynamic update

This commit was tested manually.  I did not write a test for it because
the dynamic update mechanism will very soon be replaced by one based on
the RRset model.  The issue will then disappear.
Peter Thomassen 8 年之前
父節點
當前提交
cab4a37577
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      api/desecapi/pdns.py

+ 3 - 0
api/desecapi/pdns.py

@@ -210,6 +210,9 @@ def set_dyn_records(domain):
         ]
     })
 
+    # Don't forget to import the updated RRsets
+    domain.sync_from_pdns()
+
     notify_zone(domain)