Skip to content

Commit

Permalink
feat(jail/stop): Add force flag to stop
Browse files Browse the repository at this point in the history
Ticket: #73047
  • Loading branch information
Brandon Schneider committed Jan 31, 2019
1 parent 330eae6 commit 3b98998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/middlewared/middlewared/plugins/jail.py
Expand Up @@ -582,12 +582,12 @@ def start(self, jail):

return True

@accepts(Str("jail"))
def stop(self, jail):
@accepts(Str("jail"), Bool('force'))
def stop(self, jail, force):
"""Takes a jail and stops it."""
_, _, iocage = self.check_jail_existence(jail)

iocage.stop()
iocage.stop(force=force)

return True

Expand Down

0 comments on commit 3b98998

Please sign in to comment.