Send Netdot-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."
Today's Topics:
1. [SCM] Netdot branch master updated. netdot-1.0.6-57-gb5af776
([email protected])
----------------------------------------------------------------------
Message: 1
Date: Wed, 8 Oct 2014 08:15:02 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch master updated.
netdot-1.0.6-57-gb5af776
To: [email protected]
Message-ID: <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot".
The branch, master has been updated
via b5af776ac5ffc36cf3ec3bafc97b11c648eed7b2 (commit)
via f555da741d100a49bdc226fd8363b66ff6f6547a (commit)
from 3f415fabc24a2c0a6dd24bc0218952d9dfbeec0a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b5af776ac5ffc36cf3ec3bafc97b11c648eed7b2
Merge: 3f415fa f555da7
Author: Carlos Vicente <[email protected]>
Date: Wed Oct 8 11:10:06 2014 -0400
Merge pull request #27 from 42wim/feature-nonameoverwrite
only update DNS record when name is different
commit f555da741d100a49bdc226fd8363b66ff6f6547a
Author: Wim <[email protected]>
Date: Sat Oct 4 22:45:59 2014 +0200
only update when name is different
diff --git a/lib/Netdot/Model/Ipblock.pm b/lib/Netdot/Model/Ipblock.pm
index 474d5c0..7bf5332 100644
--- a/lib/Netdot/Model/Ipblock.pm
+++ b/lib/Netdot/Model/Ipblock.pm
@@ -2235,9 +2235,12 @@ sub update_a_records {
$host, $self->address,
$name) );
}else{
# Just update the current name, then
- $rr->update(\%rrstate);
- $logger->debug(sub{ sprintf("%s: Updated DNS
record for %s: %s",
- $host,
$self->address, $name) });
+ # Only update if name is different
+ if ($rr->name ne $rrstate{"name"}) {
+ $rr->update(\%rrstate);
+ $logger->debug(sub{ sprintf("%s: Updated
DNS record for %s: %s",
+ $host,
$self->address, $name) });
+ }
}
}
}
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Model/Ipblock.pm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 91, Issue 1
*******************************************