Comment 8 for bug 1717547

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/rocky)

Reviewed: https://review.openstack.org/650064
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=07ccc82af048494cb7d4c4b0cc191cc30544a270
Submitter: Zuul
Branch: stable/rocky

commit 07ccc82af048494cb7d4c4b0cc191cc30544a270
Author: Jay Pipes <email address hidden>
Date: Tue Nov 6 10:59:40 2018 -0500

    prevent common kwargs from glance client failure

    When creating a snapshot of a server using the nova API, failure occurs
    if the image contains the metadata property "version". This was due to
    the way that the GlanceClientWrapper.call() function signature was
    structured.

    This patch forces all client positional args to be passed as a named
    "args" argument to the call() function and all client named args to be
    pass as a named "kwargs" argument to the call() function. This
    eliminates any argument name-shadowing that previously caused issues.

    Closes-bug: #1717547
    Change-Id: I3ed3303309fe2a25c0043fd206f36bada4b3b8f9
    (cherry picked from commit 5c21a00e89539bbb271ccfa05e4a2ba1cddae58e)