script error in "Authenticate against a Compute endpoint in OpenStack End User Guide  - current"

Bug #1315763 reported by Reinhardt Quelle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Medium
Andreas Jaeger

Bug Description

The last script won't run as written.

line 3 is "from os import environ as env", but then in line 4 you try to use "os.get('OS_AUTH_SYSTEM')"

I think you wanted env.get('OS_AUTH_SYSTEM')

But then you probably want to feed that get a default param:

auth_system = env.get('OS_AUTH_SYSTEM',None)

auth
-----------------------------------
Built: 2014-05-03T08:06:02 00:00
git SHA: 78c3142d8a184541fbe66e8c3e1c8e68f3eb20a5
URL: http://docs.openstack.org/user-guide/content/sdk_auth_nova.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/user-guide/section_sdk_auth_nova.xml
xml:id: sdk_auth_nova

Changed in openstack-manuals:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Andreas Jaeger (jaegerandi)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to openstack-manuals (master)

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

Changed in openstack-manuals:
status: Confirmed → In Progress
Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

Thanks, I'm changing the code to read:
auth_system = env['OS_AUTH_SYSTEM']

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/91972
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=ec7be5004a8a01b7081bd2f72f368562adf49939
Submitter: Jenkins
Branch: master

commit ec7be5004a8a01b7081bd2f72f368562adf49939
Author: Andreas Jaeger <email address hidden>
Date: Sun May 4 02:29:54 2014 +0200

    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

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

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.