Invalid --os-image-api-version value causes unclear error message

Bug #1401197 reported by Mike Fedosin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Wishlist
Mike Fedosin

Bug Description

Now if --os-image-api-version param contains incorrect value then we get an error

Example:

$ glance --os-image-api-version hui
invalid literal for int() with base 10: 'hui'

Mike Fedosin (mfedosin)
Changed in python-glanceclient:
assignee: nobody → Mike Fedosin (mfedosin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/140794

Changed in python-glanceclient:
status: New → In Progress
Louis Taylor (kragniz)
summary: - Invalid handling of incorrect image api version
+ Invalid --os-image-api-version value causes unclear error message
Louis Taylor (kragniz)
Changed in python-glanceclient:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/140794
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=8e8dde2052148fea0135a19ad229da7114738024
Submitter: Jenkins
Branch: master

commit 8e8dde2052148fea0135a19ad229da7114738024
Author: Mike Fedosin <email address hidden>
Date: Wed Dec 10 21:16:23 2014 +0300

    Output clear error message on invalid api version

    Now if --os-image-api-version mistakenly contains a string then
    you will get a ValueError

    Example:
    $ glance --os-image-api-version hui
    ValueError: invalid literal for int() with base 10: 'hui'

    This code correctly handles this situation, prints a warning
    message and interrupts the execution of the client

    Change-Id: I4733578adfc70bd57afd5f0d4d361c8ef689a381
    Closes-bug: 1401197

Changed in python-glanceclient:
status: In Progress → Fix Committed
Louis Taylor (kragniz)
Changed in python-glanceclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.