error handling about getLSB()

This commit is contained in:
WAKAYAMA Shirou 2014-05-27 21:44:03 +09:00
parent b4a1a26e11
commit 710c02905f
1 changed files with 4 additions and 1 deletions

View File

@ -155,7 +155,10 @@ func GetPlatformInformation() (string, string, string, error) {
family := ""
version := ""
lsb, _ := getLSB()
lsb, err := getLSB()
if err != nil{
lsb = LSB{}
}
if pathExists("/etc/oracle-release") {
platform = "oracle"