Merge pull request #391 from gorgobacka/perform_eject

Use eject value of the class again
This commit is contained in:
JoeLametta
2019-05-03 12:28:00 +02:00
committed by GitHub

View File

@@ -186,7 +186,8 @@ class _CD(BaseCommand):
self.doCommand()
if self.options.eject in ('success', 'always'):
if (self.options.eject == 'success' and self.eject or
self.options.eject == 'always'):
utils.eject_device(self.device)
return None