From ec7be5004a8a01b7081bd2f72f368562adf49939 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 4 May 2014 02:29:54 +0200 Subject: [PATCH] User Guide: Fix auth script Fix script, we need to use env.get to allow not-set environment value. Change-Id: I61a36bfc2b5fbf412edbbdef973bb09880aa9967 Closes-Bug: #1315763 --- doc/user-guide/section_sdk_auth_nova.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/user-guide/section_sdk_auth_nova.xml b/doc/user-guide/section_sdk_auth_nova.xml index 4959514f27..cf53cc7cfe 100644 --- a/doc/user-guide/section_sdk_auth_nova.xml +++ b/doc/user-guide/section_sdk_auth_nova.xml @@ -57,8 +57,8 @@ nova = nvclient.Client(auth_url=env['OS_AUTH_URL'], import novaclient.auth_plugin import novaclient.v1_1.client as nvclient from os import environ as env -auth_system = os.get('OS_AUTH_SYSTEM') -if auth_system and auth_system != "keystone": +auth_system = env.get('OS_AUTH_SYSTEM', 'keystone') +if auth_system != "keystone": auth_plugin = novaclient.auth_plugin.load_plugin(auth_system) else: auth_plugin = None