summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorMartin Babinsky <mbabinsk@redhat.com>2016-11-28 15:10:22 +0100
committerMartin Babinsky <mbabinsk@redhat.com>2016-12-02 13:00:06 +0100
commit42307ae2dc4d9be06d3fd9b7e5af2e0761b8d6ad (patch)
treed8f55586701d65639125bf10448d390cd9f67d22 /ipalib
parent7f301b00ce50814d098e7e42324ef741c71b6853 (diff)
downloadfreeipa-42307ae2dc4d9be06d3fd9b7e5af2e0761b8d6ad.tar.gz
freeipa-42307ae2dc4d9be06d3fd9b7e5af2e0761b8d6ad.tar.xz
freeipa-42307ae2dc4d9be06d3fd9b7e5af2e0761b8d6ad.zip
Revert "Add 'ipa localenv' subcommand"
This reverts commit 1166fbc4946596fcc2ed51a1ec6990fc7dae8964. The proper fix is to restore pre-thin client behavior of commands inheriting from LocalOrRemote class. https://fedorahosted.org/freeipa/ticket/6490 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/cli.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 696be622f..94b49717b 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -54,7 +54,6 @@ from ipalib.constants import CLI_TAB, LDAP_GENERALIZED_TIME_FORMAT
from ipalib.parameters import File, Str, Enum, Any, Flag
from ipalib.text import _
from ipalib import api # pylint: disable=unused-import
-from ipapython.dn import DN
from ipapython.dnsutil import DNSName
import datetime
@@ -860,28 +859,6 @@ class help(frontend.Local):
writer(_(' ipa <command> --help'))
writer()
-
-class local_env(frontend.Local):
- """Dump local api.env vars
- """
-
- takes_args = ()
- takes_options = ()
- has_output = ()
- topic = None
-
- def run(self, *args, **options):
- for key in sorted(self.api.env):
- value = getattr(api.env, key)
- if isinstance(value, DN):
- value = unicode(value)
- if isinstance(value, (str, unicode)):
- # shell escape
- value = value.replace(r'"', r'\"')
- value = value.replace('$', r'$$')
- print('{}="{}"'.format(key, value))
-
-
class show_mappings(frontend.Command):
"""
Show mapping of LDAP attributes to command-line option.
@@ -1359,7 +1336,6 @@ cli_plugins = (
console,
help,
show_mappings,
- local_env,
)