mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
cephadm: move a logging line closer to where the data is used
Move a logging line closer to where the data being logging is used. This avoids having a dependency on logging in a fairly simple function and should make moving the function in a future commit easier. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
ad54514806
commit
f9e9f30b27
@ -5413,7 +5413,6 @@ def read_configuration_source(ctx: CephadmContext) -> Dict[str, Any]:
|
||||
else:
|
||||
with open(source, 'rb') as fh:
|
||||
config_data = json.load(fh)
|
||||
logger.debug('Loaded deploy configuration: %r', config_data)
|
||||
return config_data
|
||||
|
||||
|
||||
@ -5455,6 +5454,7 @@ def command_deploy_from(ctx: CephadmContext) -> None:
|
||||
configuration parameters from an input JSON configuration file.
|
||||
"""
|
||||
config_data = read_configuration_source(ctx)
|
||||
logger.debug('Loaded deploy configuration: %r', config_data)
|
||||
apply_deploy_config_to_ctx(config_data, ctx)
|
||||
_common_deploy(ctx)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user