Skip to content

Commit

Permalink
lxd/instance/drivers/driver/lxc: Improve comment for size in Render
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Dec 19, 2024
1 parent 0ef7f0d commit a374b0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lxd/instance/drivers/driver_lxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3260,7 +3260,10 @@ func (d *lxc) Render(options ...func(response any) error) (state any, etag any,
LastUsedAt: d.lastUsedDate,
Name: strings.SplitN(d.name, "/", 2)[1],
Stateful: d.stateful,
Size: -1, // Default to uninitialised/error state (0 means no CoW usage).

// Default to uninitialised/error state (0 means no CoW usage).
// The size can then be populated optionally via the options argument.
Size: -1,
}

snapState.Architecture = architectureName
Expand Down

0 comments on commit a374b0b

Please sign in to comment.