mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Removed 'Assert False' that was mistakingly left in cert.py; small cleanup in cert.py and ra.py imports
This commit is contained in:
parent
4ab133c3cb
commit
7e23ee7cc6
@ -23,13 +23,11 @@ Command plugins for IPA-RA certificate operations.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipalib import api, SkipPluginModule
|
from ipalib import api, SkipPluginModule
|
||||||
|
|
||||||
if api.env.enable_ra is not True:
|
if api.env.enable_ra is not True:
|
||||||
raise SkipPluginModule(reason='env.enable_ra=%r' % (api.env.enable_ra,))
|
# In this case, abort loading this plugin module...
|
||||||
|
raise SkipPluginModule(reason='env.enable_ra is not True')
|
||||||
from ipalib import Command, Str, Int
|
from ipalib import Command, Str, Int
|
||||||
|
|
||||||
assert False
|
|
||||||
|
|
||||||
class cert_request(Command):
|
class cert_request(Command):
|
||||||
"""
|
"""
|
||||||
|
@ -32,10 +32,9 @@ certificates via the following methods:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ipalib import api, SkipPluginModule
|
from ipalib import api, SkipPluginModule
|
||||||
|
|
||||||
if api.env.enable_ra is not True:
|
if api.env.enable_ra is not True:
|
||||||
raise SkipPluginModule(reason='env.enable_ra=%r' % (api.env.enable_ra,))
|
# In this case, abort loading this plugin module...
|
||||||
|
raise SkipPluginModule(reason='env.enable_ra is not True')
|
||||||
import os, stat, subprocess
|
import os, stat, subprocess
|
||||||
import array
|
import array
|
||||||
import errno
|
import errno
|
||||||
@ -44,7 +43,6 @@ from httplib import HTTPConnection
|
|||||||
from urllib import urlencode, quote
|
from urllib import urlencode, quote
|
||||||
from socket import gethostname
|
from socket import gethostname
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
from ipalib import Backend
|
from ipalib import Backend
|
||||||
from ipalib.errors2 import NetworkError
|
from ipalib.errors2 import NetworkError
|
||||||
from ipaserver import servercore
|
from ipaserver import servercore
|
||||||
|
Loading…
Reference in New Issue
Block a user