1 Star 0 Fork 0

安家/curator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
run_es_repo_mgr.py 868 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python
"""
Wrapper for running es_repo_mgr from source.
When used with Python 3 (and the DEB and RPM packages of Curator are compiled
and bundled with Python 3), Curator requires the locale to be unicode. Any of
the above unicode definitions are acceptable.
To set the locale to be unicode, try:
$ export LC_ALL=en_US.utf8
$ es_repo_mgr [ARGS]
Alternately, you should be able to specify the locale on the command-line:
$ LC_ALL=en_US.utf8 es_repo_mgr [ARGS]
Be sure to substitute your unicode variant for en_US.utf8
"""
from curator.repomgrcli import repo_mgr_cli
if __name__ == '__main__':
try:
repo_mgr_cli()
except RuntimeError as e:
import sys
print('{0}'.format(e))
sys.exit(1)
except Exception as e:
if 'ASCII' in str(e):
print('{0}'.format(e))
print(__doc__)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anjia/curator.git
git@gitee.com:anjia/curator.git
anjia
curator
curator
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385