tasks/ceph_fuse: populate ctx.mounts earlier

...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>
This commit is contained in:
John Spray 2015-02-24 09:26:10 +00:00
parent 2b39fe5951
commit f54e5414f9

View File

@ -109,6 +109,8 @@ def task(ctx, config):
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()
@ -122,7 +124,6 @@ def task(ctx, config):
if mount.is_mounted():
mount.umount_wait()
ctx.mounts = all_mounts
try:
yield all_mounts
finally: