diff options
author | Zuul <zuul@review.openstack.org> | 2018-08-17 06:48:46 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-08-17 06:48:46 +0000 |
commit | e49586e458ca4b673a9f2abbd317c39436bf8d95 (patch) | |
tree | 197ce7b2217abce84ec337d0d7f4237f9dfe60dc | |
parent | e43edb19d4c8c11ef6fccc08a37cf88b97d46731 (diff) | |
parent | 25ed5ceb582ba670bd49bdd6359b740b6cb396d1 (diff) | |
download | oslo-utils-e49586e458ca4b673a9f2abbd317c39436bf8d95.tar.gz |
Merge "Remove extra copy.deepcopy"
-rw-r--r-- | oslo_utils/strutils.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/oslo_utils/strutils.py b/oslo_utils/strutils.py index 922ad22..ebcc104 100644 --- a/oslo_utils/strutils.py +++ b/oslo_utils/strutils.py @@ -17,7 +17,6 @@ System-level utilities and helper functions. """ -import copy import math import re import unicodedata @@ -394,9 +393,7 @@ def mask_dict_password(dictionary, secret="***"): # nosec if not isinstance(dictionary, dict): raise TypeError("Expected a dictionary, got %s instead." % type(dictionary)) - - out = copy.deepcopy(dictionary) - + out = {} for k, v in dictionary.items(): if isinstance(v, dict): out[k] = mask_dict_password(v, secret=secret) |