Commit b4445471 authored by godog's avatar godog
Browse files

floatup: add cpu support

parent c827e2d7
Pipeline #17191 passed with stage
in 5 minutes and 15 seconds
......@@ -110,6 +110,9 @@ def main():
'--ram', type=int,
help='memory reservation for the VMs')
'--cpu', type=int, default=1,
help='CPU reservation for the VMs')
'--ttl', metavar='DURATION', default='1h',
help='TTL for the virtual machines')
......@@ -122,6 +125,8 @@ def main():
host_attrs = {}
if args.ram:
host_attrs['ram'] = args.ram
if args.cpu:
host_attrs['cpu'] = args.cpu
if args.image:
host_attrs['image'] = args.image
req = parse_inventory(args.inventory, host_attrs)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment