forked from uncloud/uncloud
Using click instead of argparse in uncloud script
This commit is contained in:
parent
2afb37daca
commit
cd2f0aaa0d
14 changed files with 279 additions and 20 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue