Bug 35612 - TypeError in simpleComputer._ldap_post_create
TypeError in simpleComputer._ldap_post_create
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 3.x
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-14 15:36 CEST by Dirk Wiesenthal
Modified: 2018-04-13 13:29 CEST (History)
2 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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):