ansible-module-powerdns icon indicating copy to clipboard operation
ansible-module-powerdns copied to clipboard

handle diff mode for records

Open fayak opened this issue 2 years ago • 0 comments

Handle diff mode (might be done in some better less hacky way but eh :man_shrugging: it works), and remove a warning

+++ after
@@ -1,3 +1,11 @@
 {
-    "records": []
+    "name": "b.example.com.",
+    "records": [
+        {
+            "content": "a.example.com.",
+            "disabled": false
+        }
+    ],
+    "ttl": 3600,
+    "type": "CNAME"
 }

changed: [a -> localhost] => (item=a.example.com.)
--- before
+++ after
@@ -2,7 +2,7 @@
     "name": "c.example.com.",
     "records": [
         {
-            "content": "c.",
+            "content": "d.example.com..",
             "disabled": false
         }
     ],

changed: [a-> localhost] => (item=a.example.com.)

Signed-off-by: Cyril Duval [email protected]

fayak avatar Jun 07 '22 17:06 fayak