From 8c947c52ef197500b05217ebcb9ac8952a038e3d Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 12 Aug 2016 11:35:04 +0200 Subject: [PATCH] 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 --- README.rst | 4 ++-- env-vars | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 5a9350a0b..6a20d0c66 100644 --- a/README.rst +++ b/README.rst @@ -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. diff --git a/env-vars b/env-vars index d0276f70c..8b42c88d1 100644 --- a/env-vars +++ b/env-vars @@ -1,2 +1,2 @@ export IRONIC_URL=http://localhost:6385/ -export OS_AUTH_TOKEN=' ' +export OS_AUTH_TOKEN='fake-token'