Using click instead of argparse in uncloud script

This commit is contained in:
ahmadbilalkhalid 2020-01-01 14:59:47 +05:00
commit cd2f0aaa0d
14 changed files with 279 additions and 20 deletions

View file

@ -40,7 +40,7 @@ def maintenance(host):
shared.vm_pool.put(vm)
def main(hostname):
def main(hostname, debug=False):
host_pool = shared.host_pool
host = next(filter(lambda h: h.hostname == hostname, host_pool.hosts), None)