mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
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:
parent
2b39fe5951
commit
f54e5414f9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user