Skip to content

Commit e78f256

Browse files
committed
Merge branch 'development' into alex_diff_logs
2 parents 016a155 + 6a48259 commit e78f256

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

nodescraper/cli/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,10 @@ def main(arg_input: Optional[list[str]] = None):
329329
system_info = get_system_info(parsed_args)
330330

331331
if parsed_args.log_path and parsed_args.subcmd not in ["gen-plugin-config", "describe"]:
332+
sname = system_info.name.lower().replace("-", "_").replace(".", "_")
332333
log_path = os.path.join(
333334
parsed_args.log_path,
334-
f"scraper_logs_{system_info.name}_{datetime.datetime.now().strftime('%Y_%m_%d-%I_%M_%S_%p')}",
335+
f"scraper_logs_{sname}_{datetime.datetime.now().strftime('%Y_%m_%d-%I_%M_%S_%p')}",
335336
)
336337
os.makedirs(log_path)
337338
else:

nodescraper/plugins/inband/process/collector_args.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@
2828

2929
class ProcessCollectorArgs(BaseModel):
3030
top_n_process: int = 10
31+
32+
model_config = {"extra": "forbid"}

test/unit/framework/test_analyzerargs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def build_from_model(cls, datamodel):
1313

1414
def test_build_from_model(dummy_data_model):
1515
dummy = dummy_data_model(foo=1)
16-
# args = args.build_from_model(dummy)
1716
args = MyArgs.build_from_model(dummy)
1817
assert isinstance(args, MyArgs)
1918
assert args.args_foo == dummy.foo

0 commit comments

Comments
 (0)