From f845222c449749a614e9a16fccbb1f3ae396c97d Mon Sep 17 00:00:00 2001 From: sophia Date: Thu, 16 Sep 2021 12:01:12 -0500 Subject: [PATCH] Add statebag to basis --- internal/core/basis.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/core/basis.go b/internal/core/basis.go index 374520c05..baceeeed7 100644 --- a/internal/core/basis.go +++ b/internal/core/basis.go @@ -41,6 +41,7 @@ type Basis struct { mappers []*argmapper.Func dir *datadir.Basis ctx context.Context + statebag StateBag m sync.Mutex client *serverclient.VagrantClient @@ -191,6 +192,10 @@ func (b *Basis) Client() *serverclient.VagrantClient { return b.client } +func (b *Basis) State() *StateBag { + return &b.statebag +} + // Returns the detected host for the current platform func (b *Basis) Host() (host core.Host, err error) { hosts, err := b.typeComponents(b.ctx, component.HostType)