...so that if an error happens during mount, I can
use the interactive console to access ctx.mounts.
Signed-off-by: John Spray <john.spray@redhat.com>
if client_config.get('mounted', True):
mounted_by_me[id_] = all_mounts[id_]
+ ctx.mounts = all_mounts
+
# Mount any clients we have been asked to (default to mount all)
for mount in mounted_by_me.values():
mount.mount()
if mount.is_mounted():
mount.umount_wait()
- ctx.mounts = all_mounts
try:
yield all_mounts
finally: