in modular_cli_sdk/services/credentials_manager.py [0:0]
def extract(self) -> dict:
if not os.path.exists(self.config_file_path):
_LOG.error(
f'Can not find configuration file by path: '
f'{self.config_file_path}')
raise ModularCliSdkConfigurationException(
f'The {self.module_name} tool is not configured. '
f'Please execute the configuration command')
with open(self.config_file_path, 'r') as config_file:
config_dict = json.load(config_file)
_LOG.debug('Configuration successfully loaded')
return config_dict