So that it is possible to lock a target of a given arch. The lock_many
function already has the argument, it only needs to be added to the list
of available options.
Signed-off-by: Loic Dachary <loic@dachary.org>
default=None,
help='OS (distro) version such as "12.10"',
)
+ parser.add_argument(
+ '--arch',
+ default=None,
+ help='architecture (x86_64, i386, armv7, arm64)',
+ )
parser.add_argument(
'--json-query',
default=None,
machines_to_update.append(machine)
elif ctx.num_to_lock:
result = lock_many(ctx, ctx.num_to_lock, ctx.machine_type, user,
- ctx.desc, ctx.os_type, ctx.os_version)
+ ctx.desc, ctx.os_type, ctx.os_version, ctx.arch)
if not result:
ret = 1
else: