error strings should not end with punctuation

Signed-off-by: yupeng <yu.peng36@zte.com.cn>
This commit is contained in:
yupeng
2016-12-03 15:17:18 +08:00
parent cd560926bd
commit 31c46e1d2c
5 changed files with 10 additions and 10 deletions

View File

@@ -141,9 +141,9 @@ func getDnsZone(dnsZoneName string, dnsZoneID string, dnsZonesInterface dnsprovi
}
if len(dnsZones) == 0 {
return nil, fmt.Errorf("DNS zone %s not found.", name)
return nil, fmt.Errorf("DNS zone %s not found", name)
} else {
return nil, fmt.Errorf("DNS zone %s is ambiguous (please specify zoneID).", name)
return nil, fmt.Errorf("DNS zone %s is ambiguous (please specify zoneID)", name)
}
}

View File

@@ -290,7 +290,7 @@ func (s *ServiceController) init() error {
}
zones, ok := s.dns.Zones()
if !ok {
return fmt.Errorf("the dns provider does not support zone enumeration, which is required for creating dns records.")
return fmt.Errorf("the dns provider does not support zone enumeration, which is required for creating dns records")
}
s.dnsZones = zones
matchingZones, err := getDnsZones(s.zoneName, s.zoneID, s.dnsZones)