grokmirror icon indicating copy to clipboard operation
grokmirror copied to clipboard

pi-indexer: fix pi-indexer init [inboxdir] call

Open evdenis opened this issue 3 years ago • 0 comments

In init mode opts.inboxdir is a string. get_inboxdirs() accepts a list. Thus the string is interpreted as a list of chars resulting in get_inboxdirs() returns an empty set. This means a call:

	$ grok-pi-indexer -v init /.../lkml/git/0.git

will always return:

	> Nothing to do.

Fix it by casting a string to a single element list.

Signed-off-by: Denis Efremov [email protected]

evdenis avatar Apr 13 '22 08:04 evdenis