2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-04-27 10:44:03 +00:00

Remove the mess info '<xcatdsource>' from the content when call getcredentials.awk (#3881)

This commit is contained in:
Bin Xu
2017-09-08 14:19:34 +08:00
committed by yangsong
parent 22b51e3efa
commit 387392707f
2 changed files with 7 additions and 3 deletions

View File

@@ -16,7 +16,9 @@ BEGIN {
print "</xcatrequest>" |& server
while (server |& getline) {
print $0
if (match($0,"<xcatdsource>") == 0) {
print $0
}
if (match($0,"<serverdone>")) {
quit = "yes"
}

View File

@@ -22,7 +22,9 @@ BEGIN {
start = 1
}
if (start == 1) {
print $0
if (match($0,"<xcatdsource>") == 0) {
print $0
}
}
if (match($0,"<serverdone>")) {
@@ -31,6 +33,6 @@ BEGIN {
if (match($0,"</xcatresponse>") && match(quit,"yes")) {
close(server)
exit
}
}
}
}