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:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user