Re: Corrected bug in cobbler sync

The %changelog in the spec file needs an adjustment to the latest
changes date string, the make bombs out without it. I think it's just an
extra field or something. I corrected my local install manually.

On Mon, 2007-04-02 at 10:59 -0400, Michael DeHaan wrote:
> This should only affect users who installed cobbler several versions 
> ago, before the kickstart tracking features were in ...
> If you're seeing a traceback while running "cobbler sync", the following 
> is the fix for the problem:
> 
> diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
> index 98f018b..2f8902a 100644
> --- a/cobbler/action_sync.py
> +++ b/cobbler/action_sync.py
> @@ -655,7 +655,7 @@ class BootSync:
>          # kickstart path rewriting (get URLs for local files)
>          if kickstart_path is not None and kickstart_path != "":
>  
> -            if system is not None and kickstart_path.startswith("/") or 
> kickstart_path.find("/cobbler/kickstarts/") != -1:
> +            if system is not None and kickstart_path.startswith("/"):
>                  pxe_fn = self.get_pxe_filename(system.name)
>                  kickstart_path = 
> "http://%s/cblr/kickstarts_sys/%s/ks.cfg" % (self.settings.server, pxe_fn)
>              elif kickstart_path.startswith("/") or 
> kickstart_path.find("/cobbler/kickstarts/") != -1:
> 
> 
> To apply this fix prior to the next release:
> 
(Continue reading)

Michael DeHaan | 2 Apr 20:32
Picon
Favicon

Re: Corrected bug in cobbler sync

Matt S [UNIX Administrator] wrote:
> The %changelog in the spec file needs an adjustment to the latest
> changes date string, the make bombs out without it. I think it's just an
> extra field or something. I corrected my local install manually.
>   

Fixxored.   Thanks.

> On Mon, 2007-04-02 at 10:59 -0400, Michael DeHaan wrote:
>   
>> This should only affect users who installed cobbler several versions 
>> ago, before the kickstart tracking features were in ...
>> If you're seeing a traceback while running "cobbler sync", the following 
>> is the fix for the problem:
>>
>> diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
>> index 98f018b..2f8902a 100644
>> --- a/cobbler/action_sync.py
>> +++ b/cobbler/action_sync.py
>> @@ -655,7 +655,7 @@ class BootSync:
>>          # kickstart path rewriting (get URLs for local files)
>>          if kickstart_path is not None and kickstart_path != "":
>>  
>> -            if system is not None and kickstart_path.startswith("/") or 
>> kickstart_path.find("/cobbler/kickstarts/") != -1:
>> +            if system is not None and kickstart_path.startswith("/"):
>>                  pxe_fn = self.get_pxe_filename(system.name)
>>                  kickstart_path = 
>> "http://%s/cblr/kickstarts_sys/%s/ks.cfg" % (self.settings.server, pxe_fn)
>>              elif kickstart_path.startswith("/") or 
(Continue reading)


Gmane