Skip to content

Commit

Permalink
sync sandboxes and containers after starting the pre-installed plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
  • Loading branch information
Iceber committed May 18, 2023
1 parent 2a8b655 commit 104c8e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/adaptation/adaptation.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,11 @@ func (r *Adaptation) startPlugins() (retErr error) {
}

if err := p.start(r.name, r.version); err != nil {
return err
return fmt.Errorf("failed to start NRI Plugin %q: %w", name, err)
}

if err := r.syncFn(noCtx, p.synchronize); err != nil {
return fmt.Errorf("failed to synchronize NRI Plugin %q: %w", name, err)
}

plugins = append(plugins, p)
Expand Down

0 comments on commit 104c8e8

Please sign in to comment.