cli: auto start container when it preexists

This commit is contained in:
Christophe Siraut 2018-03-04 10:21:15 +01:00
parent 7309315e81
commit f6ff92abe6
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ class Machine(object):
def create(self):
if self.exist():
print('container "%s" already exists' % self.name)
self.start()
return
model = Machine(self.modelpath, self.release)