Skip to content

Commit

Permalink
fix manual run of source service
Browse files Browse the repository at this point in the history
A service explicit called via singlerun could get skipped otherwise,
if the service is defined with a different mode.

eg. running

  osc service mr download_files

to update and merge files after a version update, but the project has a
global download_files service configured for validation.
  • Loading branch information
Adrian Schröter authored and dmach committed Jan 12, 2023
1 parent c1f0cfa commit a292e2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ def _execute(
allservices = [data]
elif singleservice:
allservices = [s for s in allservices if s['name'] == singleservice]
# set the right called mode or the service would be skipped below
for s in allservices:
s['mode'] = callmode

if not allservices:
# short-circuit to avoid a potential http request in vc_export_env
Expand Down

0 comments on commit a292e2b

Please sign in to comment.