(ctx, cluster_name, remote, args, name=None, **kwargs)
| 37 | |
| 38 | # this is for cephadm clusters |
| 39 | def shell(ctx, cluster_name, remote, args, name=None, **kwargs): |
| 40 | extra_args = [] |
| 41 | if name: |
| 42 | extra_args = ['-n', name] |
| 43 | return remote.run( |
| 44 | args=[ |
| 45 | 'sudo', |
| 46 | ctx.cephadm, |
| 47 | '--image', ctx.ceph[cluster_name].image, |
| 48 | 'shell', |
| 49 | ] + extra_args + [ |
| 50 | '--fsid', ctx.ceph[cluster_name].fsid, |
| 51 | '--', |
| 52 | ] + args, |
| 53 | **kwargs |
| 54 | ) |
| 55 | |
| 56 | # this is for rook clusters |
| 57 | def toolbox(ctx, cluster_name, args, **kwargs): |
no test coverage detected