Skip to content

Commit

Permalink
Merge pull request #43 from samuelkarp/fix-config
Browse files Browse the repository at this point in the history
plugin: initialize Config
  • Loading branch information
AkihiroSuda committed Apr 16, 2021
2 parents d5c4544 + aacdf75 commit 4140c90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ type Config struct {

func init() {
plugin.Register(&plugin.Registration{
Type: plugin.SnapshotPlugin,
ID: "zfs",
Type: plugin.SnapshotPlugin,
ID: "zfs",
Config: &Config{},
InitFn: func(ic *plugin.InitContext) (interface{}, error) {
ic.Meta.Platforms = append(ic.Meta.Platforms, platforms.DefaultSpec())

Expand Down

0 comments on commit 4140c90

Please sign in to comment.