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
This commit is contained in:
Zara 2016-09-06 16:07:19 +00:00
parent 3695e1f312
commit 307926fe7b
2 changed files with 5 additions and 4 deletions

View File

@ -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):

View File

@ -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.