When outputting stack output with --format, don't add additional info to value

Bug #1616989 reported by Anne Gentle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
New
Low
zhangdetong
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

I'd like to be able to launch an orchestration/heat stack and then redirect the private key output to a file and use it immediately. However extra lables are being output with a command like so:

openstack stack output show -f value jekyll-stack ssh_private_key

But, it puts this out:
SSH Private Key
ssh_private_key
-----BEGIN RSA PRIVATE KEY-----
MIEApAIBAAKCAQEAxqbFv1r9bXslA5UZiWHFFflqeX/hsawCsKTxJ7U4SKxVmMYY
HdKEAPMaUYJIO39/HMubS48IrLHA0nUJj1gBCCDCt+Y8MswiWr3mShBWWt0X21QA
blablahblah
D66WInyUNoBIeSdOwE0g11k9k7k25OGAvUA2/uY5knF3tflfZOnEohznqBRm+wcP
sA1lGHsULe07lGC2G+MbJixoXwFNEiBSfW1coyJ6U4nN/eIT1D5Mzw==
-----END RSA PRIVATE KEY-----

Revision history for this message
Steve Martinelli (stevemar) wrote :

Adding heatclient and marking osc as invalid, as the stack commands are an OSC plugin.

Changed in python-openstackclient:
status: New → Invalid
Changed in python-heatclient:
assignee: nobody → zhangdetong (zhangdetong)
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

This can be achieved with the following:

  openstack stack output show -f value -c output_value jekyll-stack ssh_private_key

However there is a good case for implementing a 'raw' formatter just for "openstack stack output show"

Changed in python-heatclient:
importance: Undecided → Low
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.