aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpnv1 <pnv@ydb.tech>2022-09-19 21:40:02 +0300
committerpnv1 <pnv@ydb.tech>2022-09-19 21:40:02 +0300
commit441f860b0e1b20d845a1775ff76f6281f2d415a8 (patch)
treece7f0e9f33a6c919be7bd06589a977cbdabd0316
parentf8fba855293278a23b47bd219e7a4b14daf2d95e (diff)
downloadydb-441f860b0e1b20d845a1775ff76f6281f2d415a8.tar.gz
Allow empty password field in opensource CLI
-rw-r--r--ydb/apps/ydb/commands/ydb_cloud_root.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/apps/ydb/commands/ydb_cloud_root.cpp b/ydb/apps/ydb/commands/ydb_cloud_root.cpp
index 5814f8bd22..0a836f801c 100644
--- a/ydb/apps/ydb/commands/ydb_cloud_root.cpp
+++ b/ydb/apps/ydb/commands/ydb_cloud_root.cpp
@@ -24,7 +24,7 @@ void TClientCommandRoot::SetCredentialsGetter(TConfig& config) {
return CreateOAuthCredentialsProviderFactory(config.SecurityToken);
}
if (config.UseStaticCredentials) {
- if (config.StaticCredentials.User && config.StaticCredentials.Password) {
+ if (config.StaticCredentials.User) {
return CreateLoginCredentialsProviderFactory(config.StaticCredentials);
}
}