Bash for environment variables in API Quick Start

Bug #1411258 reported by Anne Gentle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
High
Anne Gentle

Bug Description

Bash will not substitute environments in the Authenticate example:
curl -s -X POST http://127.0.0.1:5000/v2.0/tokens -H "Content-Type: application/json" -d '{"auth": {"tenantName": "$OS_TENANT_NAME", "passwordCredentials":
{"username": "$OS_USERNAME", "password": "$OS_PASSWORD"}}}' | python -m json.tool

It should be like this (please note quotes around variables $OS_TENANT_NAME $OS_USERNAME $OS_PASSWORD):
curl -s -X POST http://127.0.0.1.2:5000/v2.0/tokens -H "Content-Type: application/json" -d '{"auth": {"tenantName": "'"$OS_TENANT_NAME"'", "passwordCredentials":
{"username": "'"$OS_USERNAME"'", "password": "'"$OS_PASSWORD"'"}}}' | python -m json.tool

Could somebody please fix example in the document?

Anne Gentle (annegentle)
Changed in openstack-manuals:
importance: Undecided → High
Changed in openstack-api-site:
status: New → Confirmed
importance: Undecided → High
no longer affects: openstack-manuals
Anne Gentle (annegentle)
Changed in openstack-api-site:
assignee: nobody → Anne Gentle (annegentle)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

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

Changed in openstack-api-site:
status: Confirmed → In Progress
Tom Fifield (fifieldt)
Changed in openstack-api-site:
milestone: none → kilo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/149806
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=c658aaed7ae0095a0536003c8a5606aa0344566d
Submitter: Jenkins
Branch: master

commit c658aaed7ae0095a0536003c8a5606aa0344566d
Author: Anne Gentle <email address hidden>
Date: Fri Jan 23 21:05:37 2015 -0600

    Adds escape characters around default openrc env variables

    Allows for copy-paste

    Change-Id: I75bb1d75426908a5a7b4c328f85c8aafb657f308
    Closes-bug: 1411258

Changed in openstack-api-site:
status: In Progress → 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.