forked from uncloud/uncloud
Write VM to etcd
This commit is contained in:
parent
c0e6d6a0d8
commit
1b36c2f96f
5 changed files with 92 additions and 35 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import argparse
|
||||
|
||||
from uncloud.hack.vm import VM
|
||||
from uncloud.hack.config import Config
|
||||
|
||||
arg_parser = argparse.ArgumentParser('hack', add_help=False)
|
||||
#description="Commands that are unfinished - use at own risk")
|
||||
|
|
@ -9,10 +10,9 @@ arg_parser.add_argument('--create-vm', action='store_true')
|
|||
|
||||
def main(arguments):
|
||||
print(arguments)
|
||||
config = Config(arguments)
|
||||
|
||||
if arguments['create_vm']:
|
||||
print("Creating VM")
|
||||
vm = VM()
|
||||
vm = VM(config)
|
||||
vm.create()
|
||||
|
||||
#debug = arguments['debug']
|
||||
#port = arguments['port']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue