mirror of https://gitee.com/anolis/sysom.git
fix(deps): Grafana custom plugins unzip ask user react
This commit is contained in:
parent
97837e00cf
commit
412948ede8
|
@ -26,9 +26,13 @@ install_grafana()
|
|||
# install plugin
|
||||
mkdir -p /var/lib/grafana/plugins
|
||||
pushd /var/lib/grafana/plugins
|
||||
if [ ! -f sysom-network-topology-panel-0.0.1.zip ]; then
|
||||
wget ${GRAFANA_PLUGIN_OSS_URL}/sysom-network-topology-panel-0.0.1.zip
|
||||
fi
|
||||
if [ ! -d sysom-network-topology-panel ]; then
|
||||
unzip sysom-network-topology-panel-0.0.1.zip
|
||||
rm -rf sysom-network-topology-panel-0.0.1.zip
|
||||
fi
|
||||
popd
|
||||
popd
|
||||
}
|
||||
|
|
|
@ -45,6 +45,8 @@ class LogEventListener(AsyncEventExecutor):
|
|||
await self._node_log_event_handler(event)
|
||||
elif task.topic_name == SYSOM_CEC_LOG_DISPATCH_AUDIT_EVENT_TOPIC:
|
||||
await self._audit_log_event_handler(event=event)
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
finally:
|
||||
task.ack(event)
|
||||
|
||||
|
|
Loading…
Reference in New Issue