未验证 提交 6f79c534 编写于 作者: W Weiwei 提交者: GitHub

add JFS_ prefix in env (#807)

上级 fd0bd5a7
......@@ -204,7 +204,7 @@ func format(c *cli.Context) error {
logger.Fatalf("object storage: %s", err)
}
logger.Infof("Data uses %s", blob)
if os.Getenv("NO_CHECK_OBJECT_STORAGE") == "" {
if os.Getenv("JFS_NO_CHECK_OBJECT_STORAGE") == "" {
if err := test(blob); err != nil {
logger.Fatalf("Storage %s is not configured correctly: %s", blob, err)
}
......
......@@ -208,7 +208,7 @@ func newCeph(endpoint, cluster, user string) (ObjectStorage, error) {
if err != nil {
return nil, fmt.Errorf("Can't create connection to cluster %s for user %s: %s", cluster, user, err)
}
if os.Getenv("NO_CHECK_OBJECT_STORAGE") == "" {
if os.Getenv("JFS_NO_CHECK_OBJECT_STORAGE") == "" {
if err := conn.ReadDefaultConfigFile(); err != nil {
return nil, fmt.Errorf("Can't read default config file: %s", err)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册