Skip to content

Commit 9dbbddb

Browse files
authored
CM-38506 - Fix usage of paths param (#240)
1 parent 9f588fc commit 9dbbddb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cycode/cli/files_collector/sca/maven/base_restore_maven_dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def restore(self, document: Document) -> Optional[Document]:
3434

3535
def get_manifest_file_path(self, document: Document) -> str:
3636
return (
37-
join_paths(self.context.params.get('path'), document.path)
37+
join_paths(self.context.params['paths'][0], document.path)
3838
if self.context.obj.get('monitor')
3939
else document.path
4040
)

cycode/cli/files_collector/sca/sca_code_scanner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def try_restore_dependencies(
103103
logger.warning('Error occurred while trying to generate dependencies tree, %s', {'filename': document.path})
104104
restore_dependencies_document.content = ''
105105
else:
106-
is_monitor_action = context.obj.get('monitor')
107-
project_path = context.params.get('path')
106+
is_monitor_action = context.obj['monitor']
107+
project_path = context.params['paths'][0]
108108
manifest_file_path = get_manifest_file_path(document, is_monitor_action, project_path)
109109
logger.debug('Succeeded to generate dependencies tree on path: %s', manifest_file_path)
110110

0 commit comments

Comments
 (0)