Changeset 758 for trunk/cgi-bin
- Timestamp:
- 07/28/15 17:56:02 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r757 r758 1451 1451 } else { 1452 1452 # Snag the pool info 1453 my $pinfo = getBlockData($ args{parent});1453 my $pinfo = getBlockData($dbh, $args{parent}); 1454 1454 # Only try to update rDNS when the pool is flagged as "rDNS available" 1455 if ($ binfo->{revavail} || $binfo->{revpartial}) {1455 if ($pinfo->{revavail} || $pinfo->{revpartial}) { 1456 1456 _rpc('addOrUpdateRevRec', cidr => "$args{cidr}", name => $args{rdns}, rpcuser => $args{user}); 1457 1457 } … … 1596 1596 1597 1597 # Snag the parent info 1598 my $pinfo = getBlockData($ fbparent);1598 my $pinfo = getBlockData($dbh, $fbparent); 1599 1599 # Only try to update rDNS when the pool is flagged as "rDNS available" 1600 if ($ binfo->{revavail} || $binfo->{revpartial}) {1600 if ($pinfo->{revavail} || $pinfo->{revpartial}) { 1601 1601 # now we do the DNS dance for netblocks, if we have an RPC server to do it with and a pattern to use. 1602 1602 _rpc('addOrUpdateRevRec', cidr => "$args{cidr}", name => $args{rdns}, rpcuser => $args{user}) … … 1810 1810 # Do RPC rDNS call, if available. 1811 1811 # Snag the parent info 1812 my $pinfo = getBlockData($ args{parent});1812 my $pinfo = getBlockData($dbh, $binfo->{parent_id}); 1813 1813 # Return early if rDNS flag(s) are not set 1814 1814 return ('OK','OK') unless ($pinfo->{revavail} || $pinfo->{revpartial});
Note:
See TracChangeset
for help on using the changeset viewer.