Support configured containers in start

This commit is contained in:
jpic 2020-08-08 16:07:15 +02:00
parent 73af20ded7
commit cd9ccec19c

View File

@ -49,7 +49,7 @@ class Container:
if result['State'] == 'running':
target.output.info(f'{self.full_name} already running')
return
elif result['State'] == 'exited':
elif result['State'] in ('exited', 'configured'):
target.output.info(f'{self.full_name} starting')
await target.exec('podman', 'start', self.full_name)
return