plugin/osbuild: make release optional
If release was not in `opts`, use `session.getNextRelease` to obtain the next release.
This commit is contained in:
parent
dbf2960792
commit
3ef4d5e566
1 changed files with 4 additions and 0 deletions
|
|
@ -243,7 +243,11 @@ class OSBuildImage(BaseTaskHandler):
|
|||
|
||||
client = self.client
|
||||
|
||||
# Version and names
|
||||
nvr = NVR(name, version, opts.get("release"))
|
||||
if not nvr.release:
|
||||
nvr.release = self.session.getNextRelease(nvr.as_dict())
|
||||
|
||||
distro = opts.get("distro", f"{name}-{version}")
|
||||
formats = ["qcow2"]
|
||||
images = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue