@@ -107,28 +107,6 @@ def deploy_broker_configuration():
107
107
'(broker_ssl_enabled is False).' )
108
108
109
109
110
- def _configure_dbus (rest_venv ):
111
- # link dbus-python-1.1.1-9.el7.x86_64 to the venv for `cfy status`
112
- # (module in pypi is very old)
113
- site_packages = 'lib64/python2.7/site-packages'
114
- dbus_relative_path = os .path .join (site_packages , 'dbus' )
115
- dbuslib = os .path .join ('/usr' , dbus_relative_path )
116
- dbus_glib_bindings = os .path .join ('/usr' , site_packages ,
117
- '_dbus_glib_bindings.so' )
118
- dbus_bindings = os .path .join ('/usr' , site_packages , '_dbus_bindings.so' )
119
- if os .path .isdir (dbuslib ):
120
- dbus_venv_path = os .path .join (rest_venv , dbus_relative_path )
121
- if not os .path .islink (dbus_venv_path ):
122
- utils .ln (source = dbuslib , target = dbus_venv_path , params = '-sf' )
123
- utils .ln (source = dbus_bindings , target = dbus_venv_path , params = '-sf' )
124
- if not os .path .islink (os .path .join (rest_venv , site_packages )):
125
- utils .ln (source = dbus_glib_bindings , target = os .path .join (
126
- rest_venv , site_packages ), params = '-sf' )
127
- else :
128
- ctx .logger .warn (
129
- 'Could not find dbus install, cfy status will not work' )
130
-
131
-
132
110
def install_restservice ():
133
111
134
112
rest_service_rpm_source_url = \
@@ -156,7 +134,6 @@ def install_restservice():
156
134
deploy_broker_configuration ()
157
135
utils .yum_install (rest_service_rpm_source_url ,
158
136
service_name = REST_SERVICE_NAME )
159
- _configure_dbus (rest_venv )
160
137
install_optional (rest_venv )
161
138
utils .logrotate (REST_SERVICE_NAME )
162
139
0 commit comments