Create container with --wait option break output formatting

Bug #1812518 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-zunclient
Fix Released
Undecided
hongbin

Bug Description

It is a quite common scenario to create a container and retrieve its UUID in script. For example,

  $ openstack appcontainer run -f value -c uuid nginx
  7271e788-3008-4960-ba44-84854230e560

The output above is the UUID of the created container. However, we cannot do the same with the "--wait" option:

  $ openstack appcontainer run -f value -c uuid --wait nginx
  Complete to run container.

  809eabaa-aa92-4ae0-9c13-c563e1d0c517

There is an extra line printed on the output.

hongbin (hongbin034)
affects: zun → python-zunclient
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-zunclient (master)

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

Changed in python-zunclient:
assignee: nobody → hongbin (hongbin034)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-zunclient (master)

Reviewed: https://review.openstack.org/631941
Committed: https://git.openstack.org/cgit/openstack/python-zunclient/commit/?id=fbc4029bf28be1373faa2989b821b7eaadb51e33
Submitter: Zuul
Branch: master

commit fbc4029bf28be1373faa2989b821b7eaadb51e33
Author: Hongbin Lu <email address hidden>
Date: Sat Jan 19 21:08:20 2019 +0000

    Don't print extra output on waiting

    Change-Id: I246b864254fedd2a42f0fef34c53d2a28b92889e
    Closes-Bug: #1812518

Changed in python-zunclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-zunclient 3.3.0

This issue was fixed in the openstack/python-zunclient 3.3.0 release.

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.