Univention Bugzilla – Attachment 9980 Details for
Bug 44937
ValueError while adding third MAC with same IP address ("min() arg is an empty sequence")
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
44937.patch (text/plain), 1.01 KB, created by
Florian Best
on 2019-04-17 17:29:09 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2019-04-17 17:29:09 CEST
Size:
1.01 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py b/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >index 0b5a34a95a..5a340f5b14 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >@@ -2050,7 +2050,7 @@ def __modify_dhcp_object(self, position, mac, ip=None): > univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'the host "%s" already has a dhcp object, so we search for the next free uv name' % (name)) > RE = re.compile(r'cn=[^,]+_uv(\d+),') > taken = set(int(m.group(1)) for m in (RE.match(dn) for dn in results) if m) >- n = min(set(range(max(taken) + 1)) - taken) if taken else 0 >+ n = min(set(range(max(taken) + 2)) - taken) if taken else 0 > name = '%s_uv%d' % (name, n) > > dn = 'cn=%s,%s' % (escape_dn_chars(name), position)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44937
: 9980