refs #799 adds apparmor exception to write in kea conf and delete hash in controller
parent
6f51fba7fa
commit
fa8f0b46b8
|
|
@ -286,6 +286,10 @@ class DhcpController
|
||||||
return new JsonResponse(['error' => $responseError], 400);
|
return new JsonResponse(['error' => $responseError], 400);
|
||||||
} else {
|
} else {
|
||||||
$response[0]['arguments']['Dhcp4']['subnet4'][] = $newSubnet;
|
$response[0]['arguments']['Dhcp4']['subnet4'][] = $newSubnet;
|
||||||
|
// Eliminar el campo 'hash' si existe
|
||||||
|
if (isset($response[0]['arguments']['hash'])) {
|
||||||
|
unset($response[0]['arguments']['hash']);
|
||||||
|
}
|
||||||
$array_encoded = json_encode($response[0]['arguments']);
|
$array_encoded = json_encode($response[0]['arguments']);
|
||||||
$configurationParsed = str_replace('\\', '', $array_encoded);
|
$configurationParsed = str_replace('\\', '', $array_encoded);
|
||||||
$configuration = json_decode($configurationParsed);
|
$configuration = json_decode($configurationParsed);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue