From fa5db1e73d98c4b945ba9012488a87a200007f6a Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 17 May 2021 10:13:13 +0200 Subject: [PATCH] copr-be-dev: fix IPv6 pattern for devel stack --- roles/copr/backend/templates/provision/libvirt-new | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/copr/backend/templates/provision/libvirt-new b/roles/copr/backend/templates/provision/libvirt-new index f17acd4a5e..91355d349c 100755 --- a/roles/copr/backend/templates/provision/libvirt-new +++ b/roles/copr/backend/templates/provision/libvirt-new @@ -391,8 +391,14 @@ def _main(): _arange_default("resalloc_pool_id", "RESALLOC_POOL_ID") _arange_default("resalloc_id_in_pool", "RESALLOC_ID_IN_POOL") + devel = True + if "prod" in args.name: + devel = False + + ip6_a, ip6_g = get_fedora_ipv6_address(args.resalloc_pool_id, - args.resalloc_id_in_pool) + args.resalloc_id_in_pool, + devel) spawner = LibvirtSpawner(args.resalloc_pool_id, log) spawner.vm_name = args.name