Revision b459a848 tools/sanitize-config
b/tools/sanitize-config | ||
---|---|---|
19 | 19 |
# 02110-1301, USA. |
20 | 20 |
|
21 | 21 |
|
22 |
# pylint: disable-msg=C0103
|
|
22 |
# pylint: disable=C0103 |
|
23 | 23 |
|
24 | 24 |
"""Tool to sanitize/randomize the configuration file. |
25 | 25 |
|
... | ... | |
79 | 79 |
return name_map |
80 | 80 |
|
81 | 81 |
|
82 |
def SanitizeSecrets(opts, cfg): # pylint: disable-msg=W0613
|
|
82 |
def SanitizeSecrets(opts, cfg): # pylint: disable=W0613 |
|
83 | 83 |
"""Cleanup configuration secrets. |
84 | 84 |
|
85 | 85 |
""" |
... | ... | |
126 | 126 |
RenameDictKeys(cfg["instances"], old_map, True) |
127 | 127 |
|
128 | 128 |
|
129 |
def SanitizeIps(opts, cfg): # pylint: disable-msg=W0613
|
|
129 |
def SanitizeIps(opts, cfg): # pylint: disable=W0613 |
|
130 | 130 |
"""Sanitize the IP names. |
131 | 131 |
|
132 | 132 |
@note: we're interested in obscuring the old IPs, not in generating |
... | ... | |
161 | 161 |
nic["ip"] = _Get(nic["ip"]) |
162 | 162 |
|
163 | 163 |
|
164 |
def SanitizeOsNames(opts, cfg): # pylint: disable-msg=W0613
|
|
164 |
def SanitizeOsNames(opts, cfg): # pylint: disable=W0613 |
|
165 | 165 |
"""Sanitize the OS names. |
166 | 166 |
|
167 | 167 |
""" |
... | ... | |
182 | 182 |
RenameDictKeys(cfg["cluster"]["os_hvp"], os_map, False) |
183 | 183 |
|
184 | 184 |
|
185 |
def SanitizeDisks(opts, cfg): # pylint: disable-msg=W0613
|
|
185 |
def SanitizeDisks(opts, cfg): # pylint: disable=W0613 |
|
186 | 186 |
"""Cleanup disks disks. |
187 | 187 |
|
188 | 188 |
""" |
Also available in: Unified diff