Imported Upstream version 4.0.5

This commit is contained in:
Mario Fetka
2021-07-25 07:50:50 +02:00
parent 8ff3be4216
commit 3bfaa6e020
2049 changed files with 317193 additions and 1632423 deletions

View File

@@ -19,15 +19,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
import sys
import os
import argparse
import json
from ipalib.constants import FQDN
from ipatests.pytest_plugins.integration import config, env_config
from ipatests.test_integration import config
def main(argv):
@@ -94,8 +92,7 @@ def main(argv):
import yaml
return yaml.safe_dump(conf.to_dict(), default_flow_style=False)
else:
env = get_object(conf, args).to_env(**kwargs)
return env_config.env_to_script(env)
return config.env_to_script(get_object(conf, args).to_env(**kwargs))
def get_object(conf, args):
@@ -156,4 +153,4 @@ def get_object(conf, args):
if __name__ == '__main__':
print(main(sys.argv[1:]), end=' ')
print main(sys.argv[1:]),