]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: don't use "sudo" in commands if user is root 47898/head
authorAdam King <adking@redhat.com>
Thu, 1 Sep 2022 12:37:39 +0000 (08:37 -0400)
committerAdam King <adking@redhat.com>
Thu, 1 Sep 2022 12:37:39 +0000 (08:37 -0400)
commitc638d295dd30e202777314571b1075de3334becc
treee2b9c133fa63f57825407e475af8499286a8ee31
parent14189b78d81fdfa5c81b6674b8e5ee963f92c0e6
mgr/cephadm: don't use "sudo" in commands if user is root

We had a patch earlier to make us not use sudo unless the
user is not root for our other commands, but this specific
one that just runs "true" with a timeout to check if the host
is online was missed.

Fixes: https://tracker.ceph.com/issues/57369
Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/ssh.py