error strings should not end with punctuation
Signed-off-by: yupeng <yu.peng36@zte.com.cn>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user