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