]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: add a custom warning message when enabling feature
authorNizamudeen A <nia@redhat.com>
Fri, 15 Nov 2024 07:20:07 +0000 (12:50 +0530)
committerNizamudeen A <nia@redhat.com>
Wed, 11 Dec 2024 06:31:15 +0000 (12:01 +0530)
commit14855b306c4e9fdb837c46f1d8d68f43cc9b07e1
tree3d166efb5fe4a7ea398a2be7139e1428ee09cc48
parent584a81c6864726c3d079f4709a408410ccb46ab4
mgr/dashboard: add a custom warning message when enabling feature

would be helpful if we want to notify user about certain issues when
enabling something.

```
[root@ceph ceph]# ceph dashboard feature enable iscsi

WARNING: iscsi warning message
Feature 'iscsi': enabled
```

Fixes: https://tracker.ceph.com/issues/68969
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/plugins/feature_toggles.py
src/pybind/mgr/mgr_util.py