summaryrefslogtreecommitdiffstats
path: root/ipsilon/providers/saml2/rest.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2015-04-29 13:57:34 -0400
committerSimo Sorce <simo@redhat.com>2015-05-05 14:32:24 -0400
commit158c4cdefc0bd5b8dabe38685c1bebccc24d656b (patch)
treeec4a177cfb380a7cf1df77ffd5d5e4d783997bba /ipsilon/providers/saml2/rest.py
parentf54958e7101614a64d2dceb18b46d68a88130506 (diff)
downloadipsilon-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.tar.gz
ipsilon-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.tar.xz
ipsilon-158c4cdefc0bd5b8dabe38685c1bebccc24d656b.zip
Drop usage of self._debug and use self.debug instead
This method was deprecated but still used in a lot of places. https://fedorahosted.org/ipsilon/ticket/120 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/providers/saml2/rest.py')
-rw-r--r--ipsilon/providers/saml2/rest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipsilon/providers/saml2/rest.py b/ipsilon/providers/saml2/rest.py
index 730b374..1610ac4 100644
--- a/ipsilon/providers/saml2/rest.py
+++ b/ipsilon/providers/saml2/rest.py
@@ -98,10 +98,10 @@ class SPS(RestProviderBase):
spc = ServiceProviderCreator(obj)
sp = spc.create_from_buffer(name, metadata)
except (InvalidProviderId, ServerAddProviderFailedError) as e:
- self._debug(repr(e))
+ self.debug(repr(e))
return rest_error(400, str(e))
except Exception, e: # pylint: disable=broad-except
- self._debug(repr(e))
+ self.debug(repr(e))
return rest_error(500, "Failed to create Service Provider")
obj.admin.add_sp(name, sp)