Removed 'Assert False' that was mistakingly left in cert.py; small cleanup in cert.py and ra.py imports

This commit is contained in:
Jason Gerard DeRose 2009-02-12 17:18:54 -07:00 committed by Rob Crittenden
parent 4ab133c3cb
commit 7e23ee7cc6
2 changed files with 4 additions and 8 deletions

View File

@ -23,13 +23,11 @@ Command plugins for IPA-RA certificate operations.
"""
from ipalib import api, SkipPluginModule
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
assert False
class cert_request(Command):
"""

View File

@ -32,10 +32,9 @@ certificates via the following methods:
"""
from ipalib import api, SkipPluginModule
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 array
import errno
@ -44,7 +43,6 @@ from httplib import HTTPConnection
from urllib import urlencode, quote
from socket import gethostname
import socket
from ipalib import Backend
from ipalib.errors2 import NetworkError
from ipaserver import servercore