From d0973dc0e3577aefe8e83820702ac305d5c25344 Mon Sep 17 00:00:00 2001 From: karchnu Date: Tue, 19 Jan 2016 05:31:05 +0100 Subject: [PATCH] =?UTF-8?q?ne=20pas=20mettre=20=C3=A0=20jour=20si=20les=20?= =?UTF-8?q?IP=20sont=20identiques?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rt/domain.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/rt/domain.pm b/lib/rt/domain.pm index 8a20706..e73cdbb 100644 --- a/lib/rt/domain.pm +++ b/lib/rt/domain.pm @@ -118,9 +118,13 @@ sub rt_dom_cli_autoupdate { say "old : $str_old"; say "new : $str_new"; - - $zf->rr_mod($str_old, $str_new); - $zone->update( $zf ); + if($$rr{rdata} eq $$param{rdata}) { + say "SAME"; + } + else { + $zf->rr_mod($str_old, $str_new); + $zone->update( $zf ); + } $app->disconnect(); };