Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix log message when gitlab project ID not found #321

Merged
merged 2 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion bonfire/bonfire.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ def _validate_opposing_opts(ctx, param, value):
type=str,
default="",
),

_local_option,
]

Expand Down
2 changes: 1 addition & 1 deletion bonfire/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def process_iqe_cji(
parallel_enabled="",
parallel_worker_count="",
rp_args="",
ibutsu_source=""
ibutsu_source="",
):
log.info("processing IQE ClowdJobInvocation")

Expand Down
5 changes: 4 additions & 1 deletion bonfire/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ def _get_gl_commit_hash(self):
project_id = p["id"]

if not project_id:
raise FatalError("gitlab project ID not found for {self.org}/{self.repo}")
raise FatalError(
f"gitlab project ID not found for {self.org}/{self.repo}."
" If you are sure it is correct, check the repository's read permissions."
)

def get_ref_func(ref):
return self._session.get(
Expand Down