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 netdot-1.0 updated.
netdot-1.0.6-65-g4391670 ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Mon, 27 Oct 2014 12:37:19 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.6-65-g4391670
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, netdot-1.0 has been updated
via 4391670a6da2d10f78caec53c9fd7b9bf81757bd (commit)
from 4f223830ce13040276f89d70b5990f292bb9c74d (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 4391670a6da2d10f78caec53c9fd7b9bf81757bd
Author: Carlos Vicente <[email protected]>
Date: Mon Oct 27 15:36:55 2014 -0400
Avoid 'RR already exists' error when discovering a device which happens DNS
resolution fails
diff --git a/lib/Netdot/Model/Device.pm b/lib/Netdot/Model/Device.pm
index 4ee87fd..b1bbb39 100644
--- a/lib/Netdot/Model/Device.pm
+++ b/lib/Netdot/Model/Device.pm
@@ -510,7 +510,7 @@ sub assign_name {
# Try to create the RR object
# This will also create the Zone object if necessary
- my $rr = RR->insert(\%args);
+ my $rr = RR->find_or_create(\%args);
$logger->info(sprintf("Inserted new RR: %s", $rr->get_label));
# Make sure name has an associated IP and A record
if ( $ip ){
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Model/Device.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 3
*******************************************