Skip to content

Commit 53dc666

Browse files
author
Murat Kumykov
committed
suppress project data parsing when removing project
1 parent 577cfa2 commit 53dc666

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/client/multi-image/manage_project_structure.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def init_project_data(self,args):
129129
self.project_data['dry_run'] = args.dry_run
130130
self.project_data['strict'] = args.strict
131131
self.project_data['remove'] = args.remove
132+
if args.remove:
133+
return
132134

133135
subprojects = dict()
134136
child_spec_list = self.get_child_spec_list(args)
@@ -547,7 +549,8 @@ def main():
547549
timestamp = datetime.now().strftime("%Y-%m-%d_%H%M%S")
548550
args = parse_command_args()
549551
mipm = MultiImageProjectManager(args)
550-
logging.info(f"Parsed {len(mipm.project_data['subprojects'])} projects from specification data")
552+
if not args.remove:
553+
logging.info(f"Parsed {len(mipm.project_data['subprojects'])} projects from specification data")
551554
mipm.proceed()
552555

553556
if not args.remove:

0 commit comments

Comments
 (0)