Allow name to be passed through command line
This commit is contained in:
1 parent
52f02d53f1
commit
7726911562
3 files changed
+20
-9
No files matched your search
+2
-2
@@ -1,8 +1,8 @@
|
||||
from toolkit.config import get_config
|
||||
|
||||
|
||||
def get_job(config_path):
|
||||
config = get_config(config_path)
|
||||
def get_job(config_path, name=None):
|
||||
config = get_config(config_path, name)
|
||||
if not config['job']:
|
||||
raise ValueError('config file is invalid. Missing "job" key')
|
||||
|
||||
|
||||
Reference in new issue
Block a user