mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Removed depreciated envtest command from f_user.py
This commit is contained in:
parent
4f24f0fd88
commit
285fa3d330
@ -28,24 +28,6 @@ from ipalib import api
|
||||
from ipalib import errors
|
||||
from ipalib import ipa_types
|
||||
|
||||
# Command to get the idea how plugins will interact with api.env
|
||||
class envtest(frontend.Command):
|
||||
'Show current environment.'
|
||||
def run(self, *args, **kw):
|
||||
print ""
|
||||
print "Environment variables:"
|
||||
for var in api.env:
|
||||
val = api.env[var]
|
||||
if var is 'server':
|
||||
print ""
|
||||
print " Servers:"
|
||||
for item in api.env.server:
|
||||
print " %s" % item
|
||||
print ""
|
||||
else:
|
||||
print " %s: %s" % (var, val)
|
||||
return {}
|
||||
api.register(envtest)
|
||||
|
||||
def display_user(user):
|
||||
# FIXME: for now delete dn here. In the future pass in the kw to
|
||||
|
Loading…
Reference in New Issue
Block a user