mirror of
https://github.com/docker/compose.git
synced 2025-07-23 21:54:40 +02:00
Merge pull request #610 from docker/fix_volume_error_message
fix error message on ACI docker volume rm
This commit is contained in:
commit
0c1de64c84
@ -169,7 +169,7 @@ func errorEvent(resource string) progress.Event {
|
|||||||
func (cs *aciVolumeService) Delete(ctx context.Context, id string, options interface{}) error {
|
func (cs *aciVolumeService) Delete(ctx context.Context, id string, options interface{}) error {
|
||||||
tokens := strings.Split(id, "/")
|
tokens := strings.Split(id, "/")
|
||||||
if len(tokens) != 2 {
|
if len(tokens) != 2 {
|
||||||
return errors.New("wrong format for volume ID : should be storageaccount@fileshare")
|
return errors.New("invalid format for volume ID, expected storageaccount/fileshare")
|
||||||
}
|
}
|
||||||
storageAccount := tokens[0]
|
storageAccount := tokens[0]
|
||||||
fileshare := tokens[1]
|
fileshare := tokens[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user