Skip to content

Commit

Permalink
Merge pull request packit#363 from TomasTomecek/fix-move-stable
Browse files Browse the repository at this point in the history
fix `move_stable.py move_all`: create_blogpost invocation

This was the error:
Usage: move_stable_repositories [OPTIONS]
Try 'move_stable_repositories --help' for help.

Error: Got unexpected extra arguments (o r i g i n)

ctx.invoke fixes it

Reviewed-by: None <None>
  • Loading branch information
softwarefactory-project-zuul[bot] authored Jul 25, 2022
2 parents 6ed43f5 + 43b580d commit 2fb9dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/move_stable.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def move_repository(repository: str, remote: str, repo_store: str) -> None:
help="Path to dir where the repositories are stored",
)
@click.pass_context
def move_all(ctx, remote, repo_store: str) -> None:
def move_all(ctx, remote: str, repo_store: str) -> None:
if not Path(repo_store).is_dir():
click.echo(
click.style(
Expand All @@ -173,7 +173,7 @@ def move_all(ctx, remote, repo_store: str) -> None:
move_repository, repository=repository, remote=remote, repo_store=repo_store
)

create_blogpost(remote, repo_store)
ctx.invoke(create_blogpost, remote=remote, repo_store=repo_store)


@cli.command(
Expand Down

0 comments on commit 2fb9dc0

Please sign in to comment.