Commit 4b3a6f50 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[feature] add email option for lease creation

Chameleon is able to send email reminders before a lease ends. Add an
option defaulting to False to activate those.
parent 550e4629
......@@ -48,6 +48,7 @@ def do_create(argv):
'resource_type': 'physical:host',
'hypervisor_properties': "",
'resource_properties': props,
'before_end': 'email' if else '',
resources = {k: v if isinstance(v, str) else json.dumps(v)
for k, v in resources.items()}
......@@ -116,6 +117,9 @@ def main():
help="Use haswell nodes instead of skylake",
help="Send email reminder before lease ends",
parser_create.add_argument("name", help="Lease name")
parser_create.add_argument("size", help="Number of hosts to lease",
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