Add possibility to set snapshot ID (used in test)
This commit is contained in:
parent
04a8ee80fb
commit
696c18e031
1 changed files with 5 additions and 0 deletions
|
@ -146,6 +146,11 @@ func (sn Snapshot) ID() *ID {
|
||||||
return sn.id
|
return sn.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetID sets the snapshot's ID.
|
||||||
|
func (sn *Snapshot) SetID(id ID) {
|
||||||
|
sn.id = &id
|
||||||
|
}
|
||||||
|
|
||||||
func (sn *Snapshot) fillUserInfo() error {
|
func (sn *Snapshot) fillUserInfo() error {
|
||||||
usr, err := user.Current()
|
usr, err := user.Current()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue