mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
host-del --updatedns: print warnings instead of error
When DNS records do not exist, print warnings instead of hard error https://fedorahosted.org/freeipa/ticket/5627 Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
@@ -360,6 +360,17 @@ class ResultFormattingError(PublicMessage):
|
||||
type = "warning"
|
||||
|
||||
|
||||
class FailedToRemoveHostDNSRecords(PublicMessage):
|
||||
"""
|
||||
**13020** Failed to remove host DNS records
|
||||
"""
|
||||
|
||||
errno = 13020
|
||||
type = "warning"
|
||||
format = _("DNS record(s) of host %(host)s could not be removed. "
|
||||
"(%(reason)s)")
|
||||
|
||||
|
||||
def iter_messages(variables, base):
|
||||
"""Return a tuple with all subclasses
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user