Add config file support

This commit is contained in:
2018-06-08 12:19:48 -04:00
parent 33e0100687
commit 6cd84f725a
4 changed files with 53 additions and 17 deletions

View File

@ -24,10 +24,11 @@ import os, sys, uuid, socket, time, threading, libvirt, kazoo.client, ansiiprint
class VMInstance:
# Initialization function
def __init__(self, domuuid, zk, thishypervisor):
def __init__(self, domuuid, zk, config, thishypervisor):
# Passed-in variables on creation
self.domuuid = domuuid
self.zk = zk
self.config = config
self.thishypervisor = thishypervisor
# These will all be set later