Give feedback if no modules found via the freeze command.
This commit is contained in:
parent
be4b6b240f
commit
38e1bfda99
1 changed files with 8 additions and 4 deletions
12
circup.py
12
circup.py
|
|
@ -498,10 +498,14 @@ def freeze(): # pragma: no cover
|
|||
device.
|
||||
"""
|
||||
logger.info("Freeze")
|
||||
for module in find_modules():
|
||||
output = "{}=={}".format(module.name, module.device_version)
|
||||
click.echo(output)
|
||||
logger.info(output)
|
||||
modules = find_modules()
|
||||
if modules:
|
||||
for module in modules:
|
||||
output = "{}=={}".format(module.name, module.device_version)
|
||||
click.echo(output)
|
||||
logger.info(output)
|
||||
else:
|
||||
click.echo("No modules found on the device.")
|
||||
|
||||
|
||||
@main.command()
|
||||
|
|
|
|||
Loading…
Reference in a new issue