diff --git a/script/gspylib/inspection/items/os/CheckEtcHosts.py b/script/gspylib/inspection/items/os/CheckEtcHosts.py index e0f4a774b89a015c0393ce77a76df82f5713be9e..f6d1c9b9f7a0ed05559cf582e2f6fcb06ad16125 100644 --- a/script/gspylib/inspection/items/os/CheckEtcHosts.py +++ b/script/gspylib/inspection/items/os/CheckEtcHosts.py @@ -68,18 +68,10 @@ class CheckEtcHosts(BaseItem): flag = "Error_conflicts" else: IPMapping[ip] = host - if (len(IPInfo.split()) > 2 and IPInfo.split()[2] == "#Gauss"): - commentsMapping.append(IPInfo + " IP Hosts Mapping") - flag = "Error_comments" if (flag == "Normal"): self.result.rst = ResultStatus.OK self.result.val = "The /etc/hosts is configured correctly." - elif (flag == "Error_comments"): - self.result.rst = ResultStatus.NG - self.result.val = "The /etc/hosts has comments Mapping:\n" \ - + "\n".join( - commentsMapping) else: self.result.rst = ResultStatus.NG self.result.val = "The /etc/hosts has conflicts Mapping:\n" \