Skip to content

Conversation

@liu-hai
Copy link
Contributor

@liu-hai liu-hai commented Aug 30, 2023

Purpose of the pull request

主机连接校验与主机Agent分发时,若分发节点与主节点在同一台机器上,无需进行校验和远程分发

Brief change log

改进主要是根据当前manage主机的ip来进行判断,如果运行的流程ip和当前manage主机的ip相同,就不进行进行校验和远程分发,而是直接使用调用本地shell脚本的方式来进行分发

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contains incompatible changes, you should also pull request the documentation to https://github.com/datasophon/datasophon-website

InetAddress ip = InetAddress.getLocalHost();
return ip.getHostAddress();
} catch (UnknownHostException e) {
throw new RuntimeException(e);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use exists api to get hostname

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants