xcat2 / xcat-extensions

Repos to store scripts for special user cases
4 stars 8 forks source link

fix create hosts file and find_line issue #37

Closed bybai closed 6 years ago

bybai commented 6 years ago

for https://github.com/xcat2/xcat2-task-management/issues/221 fix the following issue:

1, if host is long host name, add "ip long_hostname short_hostname" into /etc/hosts 2, enhance find_line function. In the old code, "key in line" expand the scope. Use regex in new code to exact match the word.

neo954 commented 6 years ago

Anyway, I will merge this one.