Comment 7 for bug 1295356

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-saharaclient (master)

Submitter: Jenkins
Branch: master

commit d7cad3a7c337a4adcabfa577070b9f715d69e30b
Author: Zhiqiang Fan <email address hidden>
Date: Sun Sep 27 10:06:59 2015 -0600

    print usage when no argument is specified for python3

    When running just sahara' under python3, we will get the error:
    ERROR: b"'Namespace' object has no attribute 'func'"

    This is because map() is used to decode sys.argv, but under Python3
    it returns a map object which is an iterable. Some code later tries
    to use this in a boolean context and it will always return True,
    even if it's empty.

    Change-Id: I508b093e30814645b2bd4c32cf469204bb696207
    Closes-Bug: #1295356