[libvirt] [PATCH 1/3] example: Fix argument handling

Eric Blake eblake at redhat.com
Wed Oct 12 22:17:33 UTC 2011


On 10/12/2011 08:54 AM, Philipp Hahn wrote:
> sys.argv contains the original command line arguments, while args only
> contains the arguments not handled by getopt(). Currently this is no
> problem since --help is the only command line option passable, which
> terminates the process, so the code is never reached. Any option added
> in the future will reveal the bug.
>
> Signed-off-by: Philipp Hahn<hahn at univention.de>
> ---
>   examples/domain-events/events-python/event-test.py |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)

ACK and pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list