Describe the bug
When performing a scan, the cache database is not created in a predictable manner. By default, it should be found at /tmp/$USER/magellan/assets.db when the --cache flag is not set.
To Reproduce
Steps to reproduce the behavior:
- Clone and build from
main branch
- Run command (used with emulator):
magellan scan --subnet 172.21.0.0/24 --port 5000 --include=bmcs -l debug
Expected behavior
An SQLite database should be created in the default location with the reproducible steps above. The database should only not be created when the disable-cache flag is set.
Check the default cache location with ls /tmp/$USER/magellan after running steps to reproduce. You should see a assets.db file there.
Additional context
The cache database is strangely created only when setting the -F format flag.
Describe the bug
When performing a scan, the cache database is not created in a predictable manner. By default, it should be found at
/tmp/$USER/magellan/assets.dbwhen the--cacheflag is not set.To Reproduce
Steps to reproduce the behavior:
mainbranchmagellan scan --subnet 172.21.0.0/24 --port 5000 --include=bmcs -l debugExpected behavior
An SQLite database should be created in the default location with the reproducible steps above. The database should only not be created when the
disable-cacheflag is set.Check the default cache location with
ls /tmp/$USER/magellanafter running steps to reproduce. You should see aassets.dbfile there.Additional context
The cache database is strangely created only when setting the
-Fformat flag.