Browse Source

The provider constructor requires a pass-through id parameter.

pull/165/head
Terrence Cole 9 years ago
parent
commit
92fb24f3fa
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      octodns/provider/rackspace.py
  2. +1
    -1
      tests/test_octodns_provider_rackspace.py

+ 1
- 1
octodns/provider/rackspace.py View File

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


+ 1
- 1
tests/test_octodns_provider_rackspace.py View File

@ -49,7 +49,7 @@ class TestRackspaceProvider(TestCase):
self.maxDiff = 1000 self.maxDiff = 1000
with requests_mock() as mock: with requests_mock() as mock:
mock.post(ANY, status_code=200, text=AUTH_RESPONSE) 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) self.assertTrue(mock.called_once)
def test_bad_auth(self): def test_bad_auth(self):


Loading…
Cancel
Save