Upgradeprovision error

Matthieu Patou mat at samba.org
Wed Jun 23 07:18:21 MDT 2010


On 23/06/2010 16:58, Michael Wood wrote:
> On 23 June 2010 14:01, Matthieu Patou<mat at samba.org>  wrote:
>    
>> On 23/06/2010 13:02, Rohit Rajan wrote:
>>      
>>> Hi Mat,
>>>
>>> after the patch i got the following error
>>>
>>> ./scripting/bin/upgradeprovision --full -s /usr/local/samba/etc/smb.conf
>>> pdc_fsmo_init: no domain object present: (skip loading of domain details)
>>>
>>> naming_fsmo_init: no partitions dn present: (skip loading of naming
>>> contexts details)
>>>
>>> naming_fsmo_init: no partitions dn present: (skip loading of naming
>>> contexts details)
>>>
>>> naming_fsmo_init: no partitions dn present: (skip loading of naming
>>> contexts details)
>>>
>>> Traceback (most recent call last):
>>>   File "./scripting/bin/upgradeprovision", line 963, in update_partition
>>>     provisionUSNs, names.invocation)
>>>   File "./scripting/bin/upgradeprovision", line 740, in update_present
>>>     identic_rename(samdb, reference[0].dn)
>>>   File "bin/python/samba/upgradehelpers.py", line 425, in identic_rename
>>>     (before, sep, after)=str(dn).partition('=')
>>> AttributeError: 'str' object has no attribute 'partition'
>>>
>>>        
>> What is your version of python ?
>>      
> partition() appears to be new in version 2.5.
>
> http://docs.python.org/library/stdtypes.html#str.partition
>
> I think this would be more portable?
>
> (before, after) = str(db).split('=', 1)
>    
Please, feel free to send me patches !

Matthieu.

-- 
Matthieu Patou
Samba Team        http://samba.org



More information about the samba-technical mailing list