]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fix creating custom Prometheus image
authorPatrick Seidensal <pseidensal@suse.com>
Tue, 7 Jul 2020 11:58:27 +0000 (13:58 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 23 Jul 2020 13:20:10 +0000 (15:20 +0200)
commitd97e7da4093fcb7afa2913abd7f2ba360c1923d3
tree0a52329788cc063c9056444b9275b379ee08d999
parente13e5c02b7a464ebaff709b6fb9640158f43fc6b
cephadm: fix creating custom Prometheus image

Fix the code by improving a condition where a zero as uid or gid leads
to an additional attempt to extract the uid/gid instead of uid/gid
simply being used correctly.

Fixes: https://tracker.ceph.com/issues/46398
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
(cherry picked from commit 3c98f1553fe3b91777ee81d887d02462132475fb)
src/cephadm/cephadm