Univention Bugzilla – Attachment 9014 Details for
Bug 35074
The 'ipRange' cannot be removed for existing networks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
35074.patch (text/plain), 1.21 KB, created by
Florian Best
on 2017-07-11 17:00:43 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2017-07-11 17:00:43 CEST
Size:
1.21 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py b/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py >index fcc393d..0c74449 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py >@@ -285,12 +285,11 @@ def _ldap_modlist(self): > raise univention.admin.uexceptions.rangeInBroadcastAddress('%s-%s' % (firstIP, lastIP, )) > ipRange.append(string.join(i, ' ')) > univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'old Range: %s' % self.oldinfo.get('ipRange')) >+ ml = [x for x in ml if x[0] != 'univentionIpRange'] > ml.append(('univentionIpRange', self.oldattr.get('univentionIpRange', ['']), ipRange)) > > if next_ip_changed: >- for el in ml: # mapping may have set nextIp already, we want our value >- if el[0] == 'univentionNextIp': >- ml.remove(el) >+ ml = [x for x in ml if x[0] != 'univentionNextIp'] > ml.append(('univentionNextIp', self.oldattr.get('univentionNextIp', ''), self['nextIp'])) > > return ml
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 35074
:
5939
|
8735
| 9014