]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: add missing python-yaml dependency for mgr-k8sevents 31178/head
authorKefu Chai <kchai@redhat.com>
Sun, 27 Oct 2019 04:44:45 +0000 (12:44 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 27 Oct 2019 04:46:15 +0000 (12:46 +0800)
otherwise we might have:

```
ceph/src/pybind/mgr/k8sevents/__init__.py", line 1, in <module>
    from .module import Module
  File "/home/kchai/ceph/src/pybind/mgr/k8sevents/module.py", line 28, in <module>
    import yaml
ImportError: No module named yaml
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph.spec.in

index 9ce5258ff245bc56c90ebf7faf5dbc832b4cef49..4198ed55bba89c2fdfeb8dd0ff2a62485fc3702e 100644 (file)
@@ -577,6 +577,12 @@ Group:          System/Filesystems
 %endif
 Requires:       ceph-mgr = %{_epoch_prefix}%{version}-%{release}
 Requires:       python%{_python_buildid}-kubernetes
+%if 0%{?fedora} || 0%{?rhel}
+Requires:       python%{_python_buildid}-yaml
+%endif
+%if 0%{?suse_version}
+Requires:       python%{_python_buildid}-PyYAML
+%endif
 %description mgr-k8sevents
 ceph-mgr-k8sevents is a ceph-mgr plugin that sends every ceph-events
 to kubernetes' events API