Creates BaseUtils class, which contains the _get_wmi_obj and
_get_wmi_conn methods, commonly used in most of the utils
classes.
Caches the WMI connections, as they do not have to be unique.
Sets the WMI _conn object, the Msvm_VirtualSystemManagementService
as object attributes, as they are constantly used and there is no
need to instantiate them every time.
Reviewed: https:/ /review. openstack. org/268144 /git.openstack. org/cgit/ openstack/ os-win/ commit/ ?id=accb5214e5c 59906083ba3144f 109b065c3b32c7
Committed: https:/
Submitter: Jenkins
Branch: master
commit accb5214e5c5990 6083ba3144f109b 065c3b32c7
Author: Claudiu Belu <email address hidden>
Date: Fri Jan 15 15:52:43 2016 +0200
Creates baseutils module
Creates BaseUtils class, which contains the _get_wmi_obj and
_get_wmi_conn methods, commonly used in most of the utils
classes.
Caches the WMI connections, as they do not have to be unique.
Sets the WMI _conn object, the Msvm_VirtualSys temManagementSe rvice
as object attributes, as they are constantly used and there is no
need to instantiate them every time.
Partial-Bug: #1505196
Change-Id: Ieee7b9e587424f 2a95aee85389adf aabf4032779