]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/telemetry: force --license when sending while opted-out
authorYaarit Hatuka <yaarit@redhat.com>
Thu, 5 Mar 2020 14:42:46 +0000 (09:42 -0500)
committerYaarit Hatuka <yaarit@redhat.com>
Thu, 5 Mar 2020 14:42:46 +0000 (09:42 -0500)
commitcbe600eaa80a2a0b99704ff868fd6eab33070397
treebdb5fa34284e438f828e0757a61b48ca20a298e6
parent54e4d2b6630014f15bbc36c9036aa5d6febf32a0
mgr/telemetry: force --license when sending while opted-out

Users can manually send telemetry data with 'ceph telemetry send', even
in case they did not opt-in and agree to the license. We ask to
explicitly add '--license' to 'ceph telemetry send' in this case.
This also fixes an issue when opting-out ('ceph telemetry off'), where the
revision was not reset.

Fixes: https://tracker.ceph.com/issues/44442
Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
src/pybind/mgr/telemetry/module.py