1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

The provider constructor requires a pass-through id parameter.

This commit is contained in:
Terrence Cole
2017-07-13 14:47:29 -07:00
parent 01f8431d74
commit 92fb24f3fa
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ class RackspaceProvider(BaseProvider):
SUPPORTS_GEO = False
TIMEOUT = 5
def __init__(self, username, api_key, *args, **kwargs):
def __init__(self, id, username, api_key, *args, **kwargs):
'''
Rackspace API v1 Provider

View File

@@ -49,7 +49,7 @@ class TestRackspaceProvider(TestCase):
self.maxDiff = 1000
with requests_mock() as mock:
mock.post(ANY, status_code=200, text=AUTH_RESPONSE)
self.provider = RackspaceProvider('test', 'api-key')
self.provider = RackspaceProvider(id, 'test', 'api-key')
self.assertTrue(mock.called_once)
def test_bad_auth(self):