Skip to content
Open
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
4 changes: 4 additions & 0 deletions iocage.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
release:
description:
- Specify which RELEASE to fetch, update, or create a jail.
Use 'latest' for latest (fetched) release.
type: str
update:
description:
Expand Down Expand Up @@ -388,6 +389,9 @@ def release_fetch(module, iocage_path, update=False, release="NO-RELEASE", compo
for _component in components:
if _component != "":
args += f" -F {_component}"
if release == "latest":
release = _get_iocage_facts(module,iocage_path,"releases")[-1]

cmd = f"{iocage_path} fetch -r {release} {args}"
rc = 1
rc, out, err = module.run_command(to_bytes(cmd, errors='surrogate_or_strict'),
Expand Down