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:
Martin Basti
2016-03-02 13:29:27 +01:00
parent 54e3859595
commit b23ad42269
2 changed files with 35 additions and 2 deletions

View File

@@ -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
"""