We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76e7d82 commit 35c4c8aCopy full SHA for 35c4c8a
ydb/public/lib/ydb_cli/commands/ydb_dynamic_config.cpp
@@ -79,6 +79,12 @@ void TCommandConfigFetch::Parse(TConfig& config) {
79
}
80
81
int TCommandConfigFetch::Run(TConfig& config) {
82
+ if (AllowEmptyDatabase) {
83
+ // explicitly clear database to get cluster database
84
+ // in `ydb admin cluster config fetch` even if
85
+ // some database is set by mistake
86
+ config.Database.clear();
87
+ }
88
auto driver = std::make_unique<NYdb::TDriver>(CreateDriver(config));
89
auto client = NYdb::NDynamicConfig::TDynamicConfigClient(*driver);
90
auto result = client.GetConfig().GetValueSync();
0 commit comments