[et-mgmt-tools] Corrected bug in cobbler sync

Matt S [UNIX Administrator] matts at hostingsupport.com
Mon Apr 2 17:40:27 UTC 2007


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:
> 
>     git clone git://et.redhat.com/cobbler
>     make
>     rpm -Uvh cobbler*.noarch.rpm --force
> 
> I plan on releasing this later this week, along with a fix for the RHEL5 
> DVD/tree "cobbler import" problem reported earlier.
> 
> --Michael
> 
> 
> 
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools




More information about the et-mgmt-tools mailing list