On Thu, 5 Jul 2012 11:27:13 +0200 Steve Meier
<[email protected]> wrote:

> Dear all,
> 
> I would like to trigger a syncRepo on specific channels before
> creating errata and running other tasks.
> 
> Since syncRepo seems to only pull the trigger is there a way
> to find out if the sync has completed via the API? Maybe via
> getDetails? Is the "Last Sync" updated on start or completion
> of a sync? Are there other ways to check assuming that I do
> not have access to the spacewalk host (logs, ps, etc).
> 
> Kind regards,
>   Steve Meier

Hello,
what I +- do is I compare:

    lastModified = client.channel.software.getDetails(key, 
CHANNEL)['last_modified']
    lastModified = time.strptime(lastModified.value, "%Y%m%dT%H:%M:%S")
    lastBuild = client.channel.software.getChannelLastBuildById(key, CHANNEL_ID)

If these two times matches, repodata are ready.

BUT: I do not have an idea if this is a valid way to do this.

Regards,
Jan



> _______________________________________________
> Spacewalk-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/spacewalk-list


-- 
Jan Hutar     Systems Management QA
[email protected]     Red Hat, Inc.

Attachment: pgptgNrTFqAVS.pgp
Description: PGP signature

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to