Ignore:
Timestamp:
08/28/25 13:42:55 (9 days ago)
Author:
Kris Deugau
Message:

/branches/secondaryzones

Update DNSDB::zoneStatus() to take a hash for arguments instead of bare
values, for easier calling for secondary zone cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/secondaryzones/dns-rpc.cgi

    r906 r931  
    19571957=item reverse
    19581958
    1959 Set to C<y> if you want to get/set the status for a reverse zone
     1959Set to C<y> if you want to get/set the status for a reverse zone.  Defaults
     1960to C<n>.
     1961
     1962=item secondary
     1963
     1964Set to C<y> if you want to get/set the status of a seconary zone.  Defaults
     1965to C<n>.  C<reverse> has no meaning if C<secondary> is 'y'.
    19601966
    19611967=item status
     
    19721978
    19731979  $args{reverse} = 'n' if !$args{reverse} || $args{reverse} ne 'y';
    1974   my @arglist = ($args{zoneid}, $args{reverse});
    1975   push @arglist, $args{status} if defined($args{status});
    1976 
    1977   my $status = $dnsdb->zoneStatus(@arglist);
     1980  $args{secondary} = 'n' if !$args{secondary} || $args{secondary} ne 'y';
     1981
     1982  my $status = $dnsdb->zoneStatus(%args);
    19781983}
    19791984
Note: See TracChangeset for help on using the changeset viewer.