Move the call to get_container_binds out of the function call.
This will aid with the next refactoring steps, so that the uses
of get_container_binds can be brought into the get_container call
directly.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
d_args.extend(sg.get_daemon_args())
_update_container_args_for_podman(ctx, ident, container_args)
+ binds = get_container_binds(ctx, ident)
return CephContainer.for_daemon(
ctx,
ident=ident,
args=ceph_args + d_args,
container_args=container_args,
volume_mounts=get_container_mounts(ctx, ident),
- bind_mounts=get_container_binds(ctx, ident),
+ bind_mounts=binds,
envs=envs,
privileged=privileged,
ptrace=ptrace,