diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2016-09-13 15:30:47 -0300 |
---|---|---|
committer | Tulio Casagrande <tcasagra@thoughtworks.com> | 2016-09-13 15:30:47 -0300 |
commit | 8713e0bc40ae8b7251f58e570ecaf13511a97136 (patch) | |
tree | 1d758016b6a71160704c7ef8052253daac0d1c09 /service/pixelated/resources | |
parent | 13190c695c1b58a1f28d2c1533c36c0353b0a438 (diff) |
[#778] Renaming get_key to be consistent with keymanager
Diffstat (limited to 'service/pixelated/resources')
-rw-r--r-- | service/pixelated/resources/keys_resource.py | 2 | ||||
-rw-r--r-- | service/pixelated/resources/user_settings_resource.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/resources/keys_resource.py b/service/pixelated/resources/keys_resource.py index 9075ab9e..e3d0733e 100644 --- a/service/pixelated/resources/keys_resource.py +++ b/service/pixelated/resources/keys_resource.py @@ -23,7 +23,7 @@ class KeysResource(BaseResource): respond_json_deferred(None, request, status_code=404) _, key_to_find = parseaddr(request.args.get('search')[0]) - d = _keymanager.fetch_key(key_to_find) + d = _keymanager.get_key(key_to_find) d.addCallback(finish_request) d.addErrback(key_not_found) diff --git a/service/pixelated/resources/user_settings_resource.py b/service/pixelated/resources/user_settings_resource.py index 38997b30..04b434bd 100644 --- a/service/pixelated/resources/user_settings_resource.py +++ b/service/pixelated/resources/user_settings_resource.py @@ -36,7 +36,7 @@ class UserSettingsResource(BaseResource): def key_not_found(_): respond_json_deferred({'account_email': _account_email, 'fingerprint': FINGERPRINT_NOT_FOUND}, request) - d = self.keymanager(request).fetch_key(_account_email) + d = self.keymanager(request).get_key(_account_email) d.addCallback(finish_request) d.addErrback(key_not_found) |