Skip to content

Commit

Permalink
Reference correct ini block for soa_edit_api setting
Browse files Browse the repository at this point in the history
Fixes commit e47d069 - issue reported by @TigerP
  • Loading branch information
thomas-pike committed Jan 13, 2020
1 parent 66ba8bb commit 095e57a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion model/zone.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ public function restore() {
}
$data->rrsets[] = $recordset;
}
$data->soa_edit_api = isset($config['pdns']['soa_edit_api']) ? $config['pdns']['soa_edit_api'] : 'INCEPTION-INCREMENT';
$data->soa_edit_api = isset($config['powerdns']['soa_edit_api']) ? $config['powerdns']['soa_edit_api'] : 'INCEPTION-INCREMENT';
$data->account = $this->account;
$data->dnssec = (bool)$this->dnssec;
$remaining_rrsets = array_slice($data->rrsets, $initial_limit);
Expand Down
2 changes: 1 addition & 1 deletion model/zonedirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function create_zone($zone) {
}
$data->rrsets[] = $recordset;
}
$data->soa_edit_api = isset($config['pdns']['soa_edit_api']) ? $config['pdns']['soa_edit_api'] : 'INCEPTION-INCREMENT';
$data->soa_edit_api = isset($config['powerdns']['soa_edit_api']) ? $config['powerdns']['soa_edit_api'] : 'INCEPTION-INCREMENT';
$data->account = $zone->account;
$data->dnssec = (bool)$zone->dnssec;
$response = $this->powerdns->post('zones', $data);
Expand Down

0 comments on commit 095e57a

Please sign in to comment.