Set OS_AUTH_TOKEN to dummy string, instead of empty space

Setting the OS_AUTH_TOKEN to empty space as stated on the docs
and env-vars no longer works, it errors out a message from requests
library.
Changing to dummy 'fake-token' fixes this.

Change-Id: Ia02aa3c56e7231a33a02474d01e9a7a2e6bfc223
Closes-Bug: #1612577
This commit is contained in:
Ricardo Carrillo Cruz 2016-08-12 11:35:04 +02:00 committed by Julia Kreger
parent dc732e68f3
commit 8c947c52ef
2 changed files with 3 additions and 3 deletions

View File

@ -190,8 +190,8 @@ If you wish to utilize ironic's CLI in no-auth mode, you must set two
environment variables:
- ``IRONIC_URL`` - A URL to the ironic API, such as http://localhost:6385/
- ``OS_AUTH_TOKEN`` - Any value, such as an empty space, is required to
cause the client library to send requests directly to the API.
- ``OS_AUTH_TOKEN`` - Any value except empty space, such as 'fake-token',
is required to cause the client library to send requests directly to the API.
For your ease of use, ``env-vars`` can be sourced to allow the CLI to connect
to a local ironic installation operating in noauth mode.

View File

@ -1,2 +1,2 @@
export IRONIC_URL=http://localhost:6385/
export OS_AUTH_TOKEN=' '
export OS_AUTH_TOKEN='fake-token'