|
12 | 12 | import semver |
13 | 13 | import logging |
14 | 14 | from nrfcloud_utils import create_device_credentials, ca_certs, modem_credentials_parser |
15 | | -from nrfcloud_utils.cli_helpers import write_file, save_devinfo_csv, save_onboarding_csv, is_linux, is_windows, is_macos, full_encoding, setup_logging |
| 15 | +from nrfcloud_utils.cli_helpers import write_file, save_devinfo_csv, save_onboarding_csv, full_encoding, setup_logging |
16 | 16 | from nrfcloud_utils.cli_helpers import CMD_TERM_DICT, CMD_TYPE_AUTO, CMD_TYPE_AT, CMD_TYPE_AT_SHELL, CMD_TYPE_TLS_SHELL, parser_add_comms_args |
17 | 17 | from nrfcredstore.command_interface import ATCommandInterface, TLSCredShellInterface |
18 | 18 | from nrfcredstore.comms import Comms |
@@ -377,30 +377,30 @@ def main(in_args): |
377 | 377 | # write CA cert(s) to device |
378 | 378 | nrf_ca_cert_text = format_cred(ca_certs.get_ca_certs(args.coap, stage=args.stage)) |
379 | 379 |
|
380 | | - logger.info(f'Writing CA cert(s) to device...') |
| 380 | + logger.info('Writing CA cert(s) to device...') |
381 | 381 | try: |
382 | 382 | cred_if.write_credential(args.sectag, 0, nrf_ca_cert_text) |
383 | 383 | except Exception as e: |
384 | | - logger.error(f'Failed to write CA certificate to device') |
| 384 | + logger.error('Failed to write CA certificate to device') |
385 | 385 | logger.debug(f'Error details: {e}') |
386 | 386 | raise |
387 | 387 |
|
388 | 388 | # write dev cert to device |
389 | | - logger.info(f'Writing dev cert to device...') |
| 389 | + logger.info('Writing dev cert to device...') |
390 | 390 | try: |
391 | 391 | cred_if.write_credential(args.sectag, 1, dev_text) |
392 | 392 | except Exception as e: |
393 | | - logger.error(f'Failed to write device certificate to device') |
| 393 | + logger.error('Failed to write device certificate to device') |
394 | 394 | logger.debug(f'Error details: {e}') |
395 | 395 | raise |
396 | 396 |
|
397 | 397 | # If the private key was locally generated, write it to the device |
398 | 398 | if prv_text is not None: |
399 | | - logger.info(f'Writing private key to device...') |
| 399 | + logger.info('Writing private key to device...') |
400 | 400 | try: |
401 | 401 | cred_if.write_credential(args.sectag, 2, prv_text) |
402 | 402 | except Exception as e: |
403 | | - logger.error(f'Failed to write private key to device') |
| 403 | + logger.error('Failed to write private key to device') |
404 | 404 | logger.debug(f'Error details: {e}') |
405 | 405 | raise |
406 | 406 |
|
|
0 commit comments