2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-05-07 17:27:16 +00:00

Add a '-r' argument to refresh site contents

If an environment manually manages all materials,
provide -r to let
them request packing of those materials
without trying to generate any of the content.
This commit is contained in:
Jarrod Johnson
2026-05-06 08:46:09 -04:00
parent b3c8cf348c
commit 060bfb0926
+3
View File
@@ -49,6 +49,7 @@ async def main(args):
wiz.add_argument('-p', help='Copy in TFTP contents required for PXE support', action='store_true')
wiz.add_argument('-i', help='Interactively prompt for behaviors', action='store_true')
wiz.add_argument('-l', help='Set up local management node to allow login from managed nodes', action='store_true')
wiz.add_argument('-r', help='Repack site contents if present', action='store_true')
osip = sp.add_parser('importcheck', help='Check import of an OS image from an ISO image')
osip.add_argument('imagefile', help='File to use for source of importing')
osip = sp.add_parser('import', help='Import an OS image from an ISO image')
@@ -389,6 +390,8 @@ async def initialize(cmdset):
rc = initialize_genesis()
if rc != 0:
sys.exit(rc)
if cmdset.r:
didsomething = True
if not didsomething and (cmdset.k or cmdset.l or cmdset.g or cmdset.p):
if cmdset.g:
await updateboot('genesis-x86_64')