예제 #1
0
    def __init__(self, host='.'):
        self._instance_name_regex = re.compile('Virtual Machine (.*)')
        self._clusapi_utils = _clusapi_utils.ClusApiUtils()
        self._cmgr = _clusapi_utils.ClusterContextManager()

        if sys.platform == 'win32':
            self._init_hyperv_conn(host)
예제 #2
0
    def setUp(self):
        super(TestClusterContextManager, self).setUp()

        self._cmgr = _clusapi_utils.ClusterContextManager()
        self._clusapi_utils = self._cmgr._clusapi_utils