def _cleanse_dict(original):
    return {k: v for k, v in six.iteritems(original) if "_pass" not in k}
Strip all admin_password, new_pass, rescue_pass keys from a dict.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/exception.py/_cleanse_dict