From ec6c924b7c0447b9119e5d4c36565c7858659328 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Mon, 3 Oct 2016 10:04:07 -0400 Subject: [PATCH] Fixed site keying for SAMLConfigurationsfor SAML management command --- .../djangoapps/third_party_auth/management/commands/saml.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/djangoapps/third_party_auth/management/commands/saml.py b/common/djangoapps/third_party_auth/management/commands/saml.py index dd2c6c1049..8a1590ae66 100644 --- a/common/djangoapps/third_party_auth/management/commands/saml.py +++ b/common/djangoapps/third_party_auth/management/commands/saml.py @@ -4,7 +4,6 @@ Management commands for third_party_auth """ from django.core.management.base import BaseCommand, CommandError import logging -from third_party_auth.models import SAMLConfiguration from third_party_auth.tasks import fetch_saml_metadata @@ -16,9 +15,6 @@ class Command(BaseCommand): parser.add_argument('--pull', action='store_true', help="Pull updated metadata from external IDPs") def handle(self, *args, **options): - if not SAMLConfiguration.is_enabled(): - raise CommandError("SAML support is disabled via SAMLConfiguration.") - if options['pull']: log_handler = logging.StreamHandler(self.stdout) log_handler.setLevel(logging.DEBUG)