Bug 35612

Summary: TypeError in simpleComputer._ldap_post_create
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: UDM (Generic)Assignee: UMC maintainers <umc-maintainers>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P5 CC: best, gohmann
Version: UCS 4.2   
Target Milestone: UCS 3.x   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=44937
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Dirk Wiesenthal univentionstaff 2014-08-14 15:36:42 CEST
Line 2392 (untouched since ages):

  self.__modify_dhcp_object( dn , self[ 'name' ], mac = entry )
TypeError: __modify_dhcp_object() takes exactly 5 non-keyword arguments (3 given)

If you count self (which you should), only one is missing: ip. Don't know if the code should be called with ip='' or not at all.
Comment 1 Florian Best univentionstaff 2016-09-24 14:42:23 CEST
Broken code is still present.
Comment 2 Florian Best univentionstaff 2017-10-12 19:12:43 CEST
The argument is nowadays optional:
  1613 ยป   def __modify_dhcp_object(self, position, mac, ip=None):