from oslo_concurrency import lockutils
from oslo_concurrency import processutils as putils
from oslo_log import log as logging
+from oslo_utils import strutils
import six
from cinder.brick import exception
*iscsi_command, run_as_root=True,
root_helper=self._root_helper,
check_exit_code=check_exit_code)
- LOG.debug("iscsiadm %(cmd)s: stdout=%(out)s stderr=%(err)s",
- {'cmd': iscsi_command, 'out': out, 'err': err})
+ msg = ("iscsiadm %(cmd)s: stdout=%(out)s stderr=%(err)s",
+ {'cmd': iscsi_command, 'out': out, 'err': err})
+ LOG.debug(strutils.mask_password(msg))
+
return (out, err)
def _iscsiadm_update(self, connection_properties, property_key,