|
25 | 25 | from cliff import command |
26 | 26 | from cliff import complete |
27 | 27 | from cliff import help |
| 28 | +from oslo_utils import strutils |
28 | 29 |
|
29 | 30 | import openstackclient |
30 | 31 | from openstackclient.common import clientmanager |
@@ -201,8 +202,10 @@ def initialize_app(self, argv): |
201 | 202 |
|
202 | 203 | # Parent __init__ parses argv into self.options |
203 | 204 | super(OpenStackShell, self).initialize_app(argv) |
204 | | - self.log.info("START with options: %s", self.command_options) |
205 | | - self.log.debug("options: %s", self.options) |
| 205 | + self.log.info("START with options: %s", |
| 206 | + strutils.mask_password(self.command_options)) |
| 207 | + self.log.debug("options: %s", |
| 208 | + strutils.mask_password(self.options)) |
206 | 209 |
|
207 | 210 | # Set the default plugin to token_endpoint if url and token are given |
208 | 211 | if (self.options.url and self.options.token): |
@@ -246,7 +249,8 @@ def initialize_app(self, argv): |
246 | 249 | self.log_configurator.configure(self.cloud) |
247 | 250 | self.dump_stack_trace = self.log_configurator.dump_trace |
248 | 251 | self.log.debug("defaults: %s", cc.defaults) |
249 | | - self.log.debug("cloud cfg: %s", self.cloud.config) |
| 252 | + self.log.debug("cloud cfg: %s", |
| 253 | + strutils.mask_password(self.cloud.config)) |
250 | 254 |
|
251 | 255 | # Set up client TLS |
252 | 256 | # NOTE(dtroyer): --insecure is the non-default condition that |
|
0 commit comments