1 Star 0 Fork 14

韩光宇/openstack-ceilometer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-Add-dummy-skip-metering-database-temporarily.patch 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
huangtianhua 提交于 2022-07-20 14:49 . Init package with 18.0.0
From 5465d5ae21407b4065fd9c51011bfb384eadc1f3 Mon Sep 17 00:00:00 2001
From: Alfredo Moralejo <amoralej@redhat.com>
Date: Fri, 27 Oct 2017 19:56:53 +0200
Subject: [PATCH] Add dummy --skip-metering-database temporarily
We need this for backwards compatibility after [1]
until we remove the option from all installers.
[1] https://review.openstack.org/#/c/512700
---
ceilometer/cmd/storage.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ceilometer/cmd/storage.py b/ceilometer/cmd/storage.py
index 70703d39..dc3875f8 100644
--- a/ceilometer/cmd/storage.py
+++ b/ceilometer/cmd/storage.py
@@ -26,6 +26,9 @@ LOG = log.getLogger(__name__)
def upgrade():
conf = cfg.ConfigOpts()
conf.register_cli_opts([
+ cfg.BoolOpt('skip-metering-database',
+ help='Skip metering database upgrade.',
+ default=False),
cfg.BoolOpt('skip-gnocchi-resource-types',
help='Skip gnocchi resource-types upgrade.',
default=False),
--
2.13.5
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/han-guangyu/openstack-ceilometer.git
git@gitee.com:han-guangyu/openstack-ceilometer.git
han-guangyu
openstack-ceilometer
openstack-ceilometer
master

搜索帮助