Commit Graph

14 Commits

Author SHA1 Message Date
Daniel W. Anner
4fca4a7fb4
Cleanup (#75)
* - Added exception handler function with easy map dictionary.
- Added extra default values for ENV vars.
- Moved parser args to Settings for global use.
- Started implementing new exception handler
- Moved git functions to gitcmd.py.
- Implemented exception handler for git functions.
- Removed extra imports where no longer needed.

* Added how to fix ssl error in case it pops up

* - Removed circular import of settings.py and gitcmd.py
- Added exception_handler.py to handle exceptions (refer to above)
- Made GitCMD a class with init and run methods
- Removed git completely from nb-dt-import.py

* Fixed missing arg

* made exception handler a class to prevent circular import
2023-03-03 16:03:17 -05:00
David Mc Ken
541a357b9f Removed manual setting for IMPORT_MODULES.
Instead automatically detect via version 3.2 or higher.
2022-09-08 12:48:24 -04:00
David Mc Ken
0a99e617e9 Added IMPORT_MODULES setting, default to disabled. 2022-09-06 21:24:11 -04:00
dalrrard
f0c53e29a3
Fix import failure when no vendor specified
Close #44 
Fix regression introduced by #34 

Check to see if each item in the list produced by `split` is iterable. If it is not, remove it. This should only occur when no vendor is specified since a non-empty string is truthy.
2021-12-16 16:26:22 -06:00
Flo
6e2e4ff6c3
Update settings.py 2021-11-24 08:16:55 +01:00
minitriga
b2c20b2cc6
Merge branch 'master' into master 2021-11-10 11:09:30 +00:00
David Mc Ken
c0fbe76247 Update settings.py
Fixed quotes to be consistent with the rest of settings.py
2021-10-31 18:09:54 -04:00
David Mc Ken
bee2eb7776 Add branch support
Set default branch name of 'master' in settings.py and then checkout the branch as appropriate.
2021-10-31 17:54:46 -04:00
Ryan Malloy
8160b6c4aa Add SLUG option to specify a space-separated list of device_type slugs to import 2021-10-05 09:02:21 -06:00
Dalton Rardin
269d5abb48 Added IGNORE_SSL_ERRORS option to settings and .env and refactored a few things 2021-08-25 11:57:38 -05:00
k0rventen
315dce530b add vendors as an env var 2021-05-16 14:46:09 +02:00
ndom91
ef4c0fa515 add: script timer + devicetype library repo url to .env 2021-02-27 01:02:03 +01:00
ndom91
f8a078220c update: README and added dotenv other small stuff 2021-02-26 23:26:32 +01:00
Alexander GITTINGS
7b81c3b0cd add readme and update some bits 2020-02-26 14:49:12 +00:00