Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-service
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
qinchao
7 years ago
Commit
c13518425f8312dd7dde4eba4abab26e1c93d440
1 parent
7b39fa4d
修改注释
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
monitor-service-switch/src/main/java/com/monitor/switchs/projectRestart/service/impl/RestartServiceImpl.java
monitor-service-switch/src/main/java/com/monitor/switchs/projectRestart/service/impl/RestartServiceImpl.java
View file @
c135184
...
...
@@ -81,7 +81,7 @@ public class RestartServiceImpl implements RestartService {
String
hostIp
=
str
.
split
(
"@"
)[
1
].
trim
();
HostInfo
hostInfo
=
hostInfoService
.
getHostInfoByHostIp
(
hostIp
);
if
(
hostInfo
!=
null
){
log
.
info
(
"RestartServiceImpl updateHostTags begin project tag is {} ,host already has tag {} "
,
currentProject
.
getTags
(),
hostInfo
.
getTags
());
//
log.info("RestartServiceImpl updateHostTags begin project tag is {} ,host already has tag {} ",currentProject.getTags(),hostInfo.getTags());
String
changeTags
=
""
;
if
(
StringUtils
.
isBlank
(
hostInfo
.
getTags
())){
changeTags
=
currentProject
.
getTags
()
;
...
...
@@ -107,7 +107,7 @@ public class RestartServiceImpl implements RestartService {
}
if
(
StringUtils
.
isNotBlank
(
changeTags
)){
log
.
info
(
"
RestartServiceImpl updateHostTags host already has tag {},add tags {} "
,
hostInfo
.
getTags
(),
changeTags
);
log
.
info
(
"
host {} RestartServiceImpl updateHostTags host already has tag {},add tags {} "
,
hostInfo
.
getHostIp
()
,
hostInfo
.
getTags
(),
changeTags
);
changeTags
=
changeTags
.
trim
();
if
(
changeTags
.
length
()>
0
&&!
changeTags
.
endsWith
(
","
)){
changeTags
+=
","
;
...
...
Please
register
or
login
to post a comment