Skip to content

Commit 4140c90

Browse files
authored
Merge pull request #43 from samuelkarp/fix-config
plugin: initialize Config
2 parents d5c4544 + aacdf75 commit 4140c90

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugin/plugin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ type Config struct {
3131

3232
func init() {
3333
plugin.Register(&plugin.Registration{
34-
Type: plugin.SnapshotPlugin,
35-
ID: "zfs",
34+
Type: plugin.SnapshotPlugin,
35+
ID: "zfs",
36+
Config: &Config{},
3637
InitFn: func(ic *plugin.InitContext) (interface{}, error) {
3738
ic.Meta.Platforms = append(ic.Meta.Platforms, platforms.DefaultSpec())
3839

0 commit comments

Comments
 (0)