Now Cobbler keeps track of when objects are added and modified.

For instance, here's the new cobbler distro report:

distro               : F9-xen-i386
architecture         : i386
breed                : redhat
created              : Mon Nov 10 16:25:07 2008
comment              : fedora9.2
initrd               : 
/mnt/engarchive2/released/F-9/GOLD/Fedora/i386/os/images/xen/initrd.img
kernel               : 
/mnt/engarchive2/released/F-9/GOLD/Fedora/i386/os/images/xen/vmlinuz
kernel options       : {}
ks metadata          : {'tree': 'http://something/os'}
tree build time      : Wed May  7 21:52:36 2008
modified             : Mon Nov 10 16:25:36 2008
mgmt classes         : []
os version           : fedora9
owners               : ['admin']
post kernel options  : {}
template files       : {}

For API users, "created" is obj.ctime, and "modified" is obj.mtime, each 
seconds-since-epoch as a float.   They are all handled internally so 
there are no API calls you can use to modify them.   For existing 
objects they will appear as the start of the Epoch (UTC):

 Wed Dec 31 19:00:00 1969

Though as you can see the times are displayed in the local time for the 
"cobbler report" command.

Additionally, the the .discinfo time that import picks up is now tracked 
as a seperate field, internally called "tree_build_time", where 
previously it was stored as a comment.

Previously imported distributions will have a "-1" for the 
"tree_build_time" and will show up in the cobbler report as "N/A".

I have yet to add these to the webapp but will be doing so shortly.

--Michael









_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to