win-build: add the --static-mac option to win-build, which retains the original MAC address
This commit is contained in:
parent
a90d8bfb57
commit
1d13ee6474
2 changed files with 9 additions and 4 deletions
4
cli/koji
4
cli/koji
|
|
@ -4978,6 +4978,8 @@ def handle_win_build(options, session, args):
|
|||
parser.add_option("--mem", type="int",
|
||||
help=_("Amount of memory (in megabytes) to allocate to the build VM " + \
|
||||
"(requires admin access)"))
|
||||
parser.add_option("--static-mac", action="store_true",
|
||||
help=_("Retain the original MAC address when cloning the VM"))
|
||||
parser.add_option("--specfile", metavar="URL",
|
||||
help=_("SCM URL of a spec file fragment to use to generate wrapper RPMs"))
|
||||
parser.add_option("--scratch", action="store_true",
|
||||
|
|
@ -5014,7 +5016,7 @@ def handle_win_build(options, session, args):
|
|||
scmurl = args[1]
|
||||
vm_name = args[2]
|
||||
opts = {}
|
||||
for key in ('winspec', 'patches', 'cpus', 'mem',
|
||||
for key in ('winspec', 'patches', 'cpus', 'mem', 'static_mac',
|
||||
'specfile', 'scratch', 'repo_id', 'skip_tag'):
|
||||
val = getattr(build_opts, key)
|
||||
if val is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue