From 1fb355eea3504fcac5a2b5ba9bbbee01aead3ede Mon Sep 17 00:00:00 2001 From: Paul Czarkowski Date: Thu, 3 Nov 2016 08:28:15 -0500 Subject: [PATCH] remove extra bracket from script in docs. The troubleshooting guide has a python script in it which has invalid syntax. This removes the extra bracket from that script and makes it function correctly. I also added some more specificity for credentials. Change-Id: I9c8b8f861b4226d9eddca4ab44c811faa89160bc --- doc/source/troubleshooting-guide.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/troubleshooting-guide.rst b/doc/source/troubleshooting-guide.rst index 318897eca6..6d6dea22ae 100644 --- a/doc/source/troubleshooting-guide.rst +++ b/doc/source/troubleshooting-guide.rst @@ -155,8 +155,8 @@ and the domain admin: Then, restart magnum-api and magnum-cond to pick up the new configuration. If the problem still exists, you might want to manually verify your domain admin credential to ensure it has the right privilege. To do that, run the -script below with the credentials replaced. If it fails, that means the -credential you provided is invalid. +script below with the credentials replaced (you must use the IDs where +specified). If it fails, that means the credential you provided is invalid. .. code-block:: python @@ -169,7 +169,7 @@ credential you provided is invalid. user_id=YOUR_TRUSTEE_DOMAIN_ADMIN_ID, domain_id=YOUR_TRUSTEE_DOMAIN_ID, password=YOUR_TRUSTEE_DOMAIN_ADMIN_PASSWORD) - ) + session = ka_session.Session(auth=auth) domain_admin_client = kc_v3.Client(session=session) user = domain_admin_client.users.create(