Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit 31b6c51c6262622114e90ea5f8d403215e0bcdcf
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Feb 12 15:07:58 2013 +0100
do not store passwords in LmiBaseClient objects
---------------------------------------------------------------
cli-tools/lmi/lmi_client_base.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/cli-tools/lmi/lmi_client_base.py b/cli-tools/lmi/lmi_client_base.py
index 320d035..d6bf417 100644
--- a/cli-tools/lmi/lmi_client_base.py
+++ b/cli-tools/lmi/lmi_client_base.py
@@ -68,12 +68,11 @@ class LmiBaseClient(object):
def __init__(self, hostname, username = "", password = ""):
self._hostname = hostname
self._username = username
- self._password = password
if not self._hostname.startswith("http://") and \
not self._hostname.startswith("https://"):
self._hostname = "https://" + self._hostname
self._cliconn = pywbem.WBEMConnection(self._hostname,
- (self._username, self._password))
+ (self._username, password))
def _get_instance_names(self, klass, **kwargs):
filter_value = ""