theCapypara / riptide-lib

Tool to manage development environments for web applications using containers - Library Package
https://riptide-docs.readthedocs.io
MIT License
4 stars 3 forks source link

"In-Service" commands crash when no service with the target role exists #1

Closed theCapypara closed 4 years ago

theCapypara commented 4 years ago
$ console
Traceback (most recent call last):
  File "/var/www/.../_riptide/bin/console", line 4, in <module>
    run_cmd("console", sys.argv[1:])
  File "/usr/local/lib/python3.6/dist-packages/riptide_cli/shell_integration.py", line 65, in run_cmd
    sys.exit(in_service.run(engine, system_config["project"], command_name, arguments))
  File "/usr/local/lib/python3.6/dist-packages/riptide/config/command/in_service.py", line 44, in run
    if engine.service_status(project, service):
  File "/usr/local/lib/python3.6/dist-packages/riptide_engine_docker/engine.py", line 90, in service_status
    return service.status(project["name"], project["app"]["services"][service_name], self.client, project.parent())
KeyError: None

Show a friendly error message instead.