mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
fix(docker/volume): failed to list volume before snapshot is created [BE-11544] (#286)
This commit is contained in:
parent
e2b812a611
commit
4010174f66
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ func (transport *Transport) getDockerID() (string, error) {
|
|||
if transport.snapshotService != nil {
|
||||
endpoint := portainer.Endpoint{ID: transport.endpoint.ID}
|
||||
|
||||
if err := transport.snapshotService.FillSnapshotData(&endpoint); err == nil {
|
||||
if err := transport.snapshotService.FillSnapshotData(&endpoint); err == nil && len(endpoint.Snapshots) > 0 {
|
||||
if dockerID, err := snapshot.FetchDockerID(endpoint.Snapshots[0]); err == nil {
|
||||
transport.dockerID = dockerID
|
||||
return dockerID, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue