andre 3 жил өмнө
parent
commit
62adfd7361
1 өөрчлөгдсөн 11 нэмэгдсэн , 2 устгасан
  1. 11 2
      cwp7.php

+ 11 - 2
cwp7.php

@@ -584,14 +584,23 @@ function cwp7_setDNS($params) {
             array_push($zoneRecords, $record);
             array_push($zoneRecords, $record);
         };
         };
     }
     }
-
+    $result = localAPI('dnsmanager' ,
+        array(
+            'dnsaction' => 'updateZone',
+            'zone_id' => $zoneID,
+            'records' => $zoneRecords,
+        )
+    );
 	logModuleCall(
 	logModuleCall(
 		'cwp7',
 		'cwp7',
 		__FUNCTION__,
 		__FUNCTION__,
 		$dnsZone,
 		$dnsZone,
 		'debug custom',
 		'debug custom',
-		$zoneRecords
+		$result
 	);
 	);
+    if($result['result'] != 'success') {
+        return 'Error: cloud not update zone for ID ' . $zoneID;
+    }
 	return 'success';
 	return 'success';
 }
 }