Add possibility to set snapshot ID (used in test)

This commit is contained in:
Alexander Weiss 2020-12-28 07:46:56 +01:00 committed by Michael Eischer
parent 04a8ee80fb
commit 696c18e031

View file

@ -146,6 +146,11 @@ func (sn Snapshot) ID() *ID {
return sn.id
}
// SetID sets the snapshot's ID.
func (sn *Snapshot) SetID(id ID) {
sn.id = &id
}
func (sn *Snapshot) fillUserInfo() error {
usr, err := user.Current()
if err != nil {