Merge pull request #20572 from runcom/sudo-user
resolve the config file from the sudo user Upstream-commit: 61d24e769d9f7a075f6881ba8b4523d5db9dcd6d Component: engine
This commit is contained in:
@ -142,7 +142,7 @@ func rawJSON(value interface{}) *json.RawMessage {
|
||||
// ValidateID checks whether an ID string is a valid image ID.
|
||||
func ValidateID(id string) error {
|
||||
if ok := validHex.MatchString(id); !ok {
|
||||
return fmt.Errorf("image ID '%s' is invalid ", id)
|
||||
return fmt.Errorf("image ID %q is invalid", id)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user