Revision 07b49e41 lib/hypervisor/hv_chroot.py
b/lib/hypervisor/hv_chroot.py | ||
---|---|---|
171 | 171 |
raise HypervisorError("Can't run the chroot start script: %s" % |
172 | 172 |
result.output) |
173 | 173 |
|
174 |
def StopInstance(self, instance, force=False): |
|
174 |
def StopInstance(self, instance, force=False, retry=False):
|
|
175 | 175 |
"""Stop an instance. |
176 | 176 |
|
177 | 177 |
This method has complicated cleanup tests, as we must: |
... | ... | |
180 | 180 |
- finally unmount the instance dir |
181 | 181 |
|
182 | 182 |
""" |
183 |
if retry: |
|
184 |
return |
|
183 | 185 |
root_dir = "%s/%s" % (self._ROOT_DIR, instance.name) |
184 | 186 |
if not os.path.exists(root_dir): |
185 | 187 |
return |
Also available in: Unified diff