mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed A record creation bug
When creating an A record we used to provide full hostname as a record name, while we should have provided only the first part of the hostname https://fedorahosted.org/freeipa/ticket/5419 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
f9bbfade29
commit
511ace9a4f
@ -886,10 +886,9 @@ def add_a_records_for_hosts_in_master_domain(master):
|
||||
def add_a_record(master, host):
|
||||
# Find out if the record is already there
|
||||
cmd = master.run_command(['ipa',
|
||||
'dnsrecord-find',
|
||||
'dnsrecord-show',
|
||||
master.domain.name,
|
||||
host.hostname,
|
||||
'--a-rec', host.ip],
|
||||
host.hostname + "."],
|
||||
raiseonerr=False)
|
||||
|
||||
# If not, add it
|
||||
@ -897,7 +896,7 @@ def add_a_record(master, host):
|
||||
master.run_command(['ipa',
|
||||
'dnsrecord-add',
|
||||
master.domain.name,
|
||||
host.hostname,
|
||||
host.hostname + ".",
|
||||
'--a-rec', host.ip])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user