Skip to content
Snippets Groups Projects
  • Guido Trotter's avatar
    ChrootManager: clean StopInstance · a2771c83
    Guido Trotter authored
    
    Currently it has lots for duplicated code, and internal retries.
    Clean it up with the following assumptions:
    
    We'll probably be called more than once.
    It is ok to fail to stop, unless we're called with force=True.
    If we're called only once, and with force=True it's ok not to run the
    chroot "cleanup" script (it's a destroy after all, why should chroots
    have more chances than other instances?).
    
    Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
    Reviewed-by: default avatarOlivier Tharan <olive@google.com>
    a2771c83