Procházet zdrojové kódy

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 před 8 roky
rodič
revize
cab4a37577
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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)