mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
rgw: fix minor compiler warning in keystone auth
Signed-off-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
parent
5eb349f4ae
commit
d807d1916f
@ -305,7 +305,7 @@ EC2Engine::get_from_keystone(const DoutPrefixProvider* dpp, const boost::string_
|
||||
}
|
||||
|
||||
const auto api_version = config.get_api_version();
|
||||
if (config.get_api_version() == rgw::keystone::ApiVersion::VER_3) {
|
||||
if (api_version == rgw::keystone::ApiVersion::VER_3) {
|
||||
keystone_url.append("v3/s3tokens");
|
||||
} else {
|
||||
keystone_url.append("v2.0/s3tokens");
|
||||
@ -394,7 +394,7 @@ std::pair<boost::optional<std::string>, int> EC2Engine::get_secret_from_keystone
|
||||
}
|
||||
|
||||
const auto api_version = config.get_api_version();
|
||||
if (config.get_api_version() == rgw::keystone::ApiVersion::VER_3) {
|
||||
if (api_version == rgw::keystone::ApiVersion::VER_3) {
|
||||
keystone_url.append("v3/");
|
||||
} else {
|
||||
keystone_url.append("v2.0/");
|
||||
|
Loading…
Reference in New Issue
Block a user