Skip to content

Commit

Permalink
Fix 'service remoterun prj/pac'
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Mar 14, 2024
1 parent 1bf2264 commit f6d7485
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -7747,12 +7747,12 @@ def do_service(self, subcmd, opts, *args):
print(f"WARNING: Command '{command}' is obsolete,\n"
"please convert your _service to use 'manual' and then 'manualrun/mr' instead.", file=sys.stderr)

if len(args) == 1:
singleservice = args.pop(0)
elif len(args) in (0, 2) and command in remote_commands:
if command in remote_commands:

Check warning on line 7750 in osc/commandline.py

View check run for this annotation

Codecov / codecov/patch

osc/commandline.py#L7750

Added line #L7750 was not covered by tests
project, package = pop_project_package_from_args(
args, default_project=".", default_package=".", package_is_optional=False
)
elif len(args) == 1:
singleservice = args.pop(0)

Check warning on line 7755 in osc/commandline.py

View check run for this annotation

Codecov / codecov/patch

osc/commandline.py#L7754-L7755

Added lines #L7754 - L7755 were not covered by tests

ensure_no_remaining_args(args)

Expand Down

0 comments on commit f6d7485

Please sign in to comment.