Fix the misstake that print a gateway address

Noriki san

Thank you for your point out.
I changed.

Nakagawa

2014-11-17 14:11 GMT+09:00 Noriki Nakamura <notifications@github.com>:

> In manager/machine_info.py:
>
> > @@ -46,7 +46,7 @@ def get_group_info(info_dict, container_path):
> >  def get_config_info(info_dict, container_path):
> >      conf_lines = read_file(container_path, 'config')
> >      for line in conf_lines:
> > -        if line.find("lxc.network.ipv4") >= 0:
> > +        if line.find("lxc.network.ipv4") >= 0 and line.find("gateway") < 0:
>
> I think it is good to use following:
>
> if line.find("lxc.network.ipv4") >= 0 and line.find("gateway") == -1:
>
> Because, find method returns -1 when the value of argument (This case:
> "gateway") doesn't exist.
> Please fix and try successfully.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/project-hatohol/test-environment-manager/pull/22/files#r20418768>
> .
>



-- 
--
━━━━━━━━━━━◆ ミラクル・リナックス株式会社 ◆
技術本部 開発部 エンジニア ：中川 雅之（Masayuki Nakagawa）
E-Mail： masayuki.nakagawa@miraclelinux.com
住所：〒105-0014
東京都港区芝3-24-7 芝エクセージビルディング5F
TEL:03-6435-4550
FAX:03-6435-4551
━━━━━━━━━━━━━━━━━━━━━━━━━━━