Skip to content

Commit be26abc

Browse files
committed
fix(manager): use builtin filestore if plugin-name does not provide
1 parent 14488df commit be26abc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

damocles-manager/cmd/damocles-manager/internal/util_storage.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var utilStorageAttachCmd = &cli.Command{
5050
},
5151
&cli.StringFlag{
5252
Name: "plugin-name",
53-
Usage: "the filestore plugin name, the plugin file should exist in `Plugin.Dir`",
53+
Usage: "the filestore plugin name, the plugin file should exist in 'Plugin.Dir'",
5454
},
5555
&cli.BoolFlag{
5656
Name: "strict",
@@ -134,7 +134,7 @@ var utilStorageAttachCmd = &cli.Command{
134134
defer stopper(gctx) // nolint:errcheck
135135

136136
var store filestore.Store
137-
if pluginName != "" {
137+
if pluginName == "" {
138138
// use builtin fs filestore
139139
store, err = filestorebuiltin.New(scfg)
140140
if err != nil {

0 commit comments

Comments
 (0)