From 307926fe7b677d95edcaeb879d6a14230b670c8b Mon Sep 17 00:00:00 2001 From: Zara Date: Tue, 6 Sep 2016 16:07:19 +0000 Subject: [PATCH] Make dev the default StoryBoard instance This makes the default instance https://storyboard-dev.openstack.org. Previously, the default was https://storyboard.openstack.org. It's probably not a good idea to have everyone pointing their test python scripts at a production instance of StoryBoard by default. This should be safer. Change-Id: I937b3ea584893eeff51db10fb7b958a566f871be --- storyboardclient/base.py | 2 +- storyboardclient/v1/client.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/storyboardclient/base.py b/storyboardclient/base.py index 767a9f5..7806779 100644 --- a/storyboardclient/base.py +++ b/storyboardclient/base.py @@ -21,7 +21,7 @@ from storyboardclient.auth import oauth from storyboardclient.openstack.common.apiclient import base from storyboardclient.openstack.common.apiclient import client -DEFAULT_API_URL = "https://storyboard.openstack.org/api/v1" +DEFAULT_API_URL = "https://storyboard-dev.openstack.org/api/v1" class BaseClient(client.BaseClient): diff --git a/storyboardclient/v1/client.py b/storyboardclient/v1/client.py index 7ea451d..994692d 100644 --- a/storyboardclient/v1/client.py +++ b/storyboardclient/v1/client.py @@ -38,15 +38,16 @@ class Client(base.BaseClient): @code: from storyboard.v1 import client - storyboard = client.Client("https://storyboard.openstack.org/api/v1", - "mytoken") + api_url = "https://storyboard-dev.openstack.org/api/v1" + token = "$my_token" + storyboard = client.Client(api_url, token) """ def __init__(self, api_url=None, access_token=None): """Sets up a client with endpoint managers. :param api_url: (Optional) Full API url. Defaults to - https://storyboard.openstack.org/api/v1 + https://storyboard-dev.openstack.org/api/v1 :param access_token: (Optional) OAuth2 access token. If skipped only public read-only endpoint will be available. All other requests will fail with Unauthorized error.