return fsid
-def get_daemon_args(ctx: CephadmContext, ident: 'DaemonIdentity') -> List[str]:
+def _get_daemon_args(ctx: CephadmContext, ident: 'DaemonIdentity') -> List[str]:
r = list() # type: List[str]
daemon_type = ident.daemon_type
ctx,
ident=ident,
entrypoint=entrypoint,
- args=ceph_args + get_daemon_args(ctx, ident),
+ args=ceph_args + _get_daemon_args(ctx, ident),
container_args=container_args,
volume_mounts=get_container_mounts(ctx, ident),
bind_mounts=get_container_binds(ctx, ident),
daemon_type = 'prometheus'
daemon_id = 'home'
fsid = 'aaf5a720-13fe-4a3b-82b9-2d99b7fd9704'
- args = _cephadm.get_daemon_args(
+ args = _cephadm.Monitoring.create(
ctx, _cephadm.DaemonIdentity(fsid, daemon_type, daemon_id)
- )
+ ).get_daemon_args()
assert any([x.startswith('--web.external-url=http://') for x in args])
@mock.patch('cephadm.call')