Write VM to etcd

This commit is contained in:
Nico Schottelius 2020-01-14 14:23:26 +01:00
commit 1b36c2f96f
5 changed files with 92 additions and 35 deletions

View file

@ -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']