inab / WfExS-backend

Workflow Execution Service Backend
Apache License 2.0
16 stars 6 forks source link

Fix `NameError` in `docker_container.py` #37

Closed dcl10 closed 1 year ago

dcl10 commented 1 year ago

Description

When running wfexs with docker, the following error occurs:

...
File "/home/daniel/WfExS-backend/wfexs_backend/docker_container.py", line 89, in ContainerType
    return ContainerType.Docker
NameError: name 'ContainerType' is not defined. Did you mean: 'Container'?

This PR fixes this by importing ContainerType outside the if statement on line in docker_container.py

jmfernandez commented 1 year ago

Thanks for the fix!!