Merge pull request #5647 from bahuma20/patch-1

saml: commands: create-saml-settings: Fix check on wrong variable
This commit is contained in:
Finn Stutzenstein 2020-10-20 15:46:50 +02:00 committed by GitHub
commit 7277a1bb01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Command(BaseCommand):
if settings_dir is not None:
settings_path = os.path.join(settings_dir, "saml_settings.json")
if not os.path.isdir(settings_path):
if not os.path.isdir(settings_dir):
print(f"The directory '{settings_dir}' does not exist. Aborting...")
return
else: