On Friday 15 of February 2013 17:04:27 David Juran wrote:
> Hello
> 
> I noticed that when running kickstart_export from spacecmd, the various
> lists that end up in the resulting json file are not sorted so every
> time one runs the command, the resulting json file end up looking
> different, i.e. the items have a different order.
> This would normally (I guess) not be a problem but what I'm trying to
> accomplish is version control of the kickstart profiles, i.e. checking
> in the json files into an external SVN repository. And then, the
> unstable ordering suddenly becomes a problem...
> The attached patch (against spacecmd-1.8.15), solves the problem by
> sorting the lists right after they've been fetched from the API, but I
> guess json_dump_to_file() in utils.py  might be a better (more generic)
> place to fix this in.

Hello David,
I committed your patch as:
http://git.fedorahosted.org/cgit/spacewalk.git/commit/?id=550cab18821742bbb23885c15575131000a4640e

Thank you!
-- 
Tomas Lestach
RHN Satellite Engineering

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to