From: Radoslaw Zarzynski Date: Thu, 5 Jan 2017 13:51:08 +0000 (+0100) Subject: rgw: fix indentation in RGWPostObj_ObjStore_S3::get_policy(). X-Git-Tag: v12.0.2~305^2~27 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0dadcbcdfb713c7c64cf151568bb7642f1383dce;p=ceph-ci.git rgw: fix indentation in RGWPostObj_ObjStore_S3::get_policy(). Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 87799b64c5f..2ee7df8e9e5 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -1860,26 +1860,26 @@ int RGWPostObj_ObjStore_S3::get_policy() } s->perm_mask = RGW_PERM_FULL_CONTROL; } - } else if (ldap.is_applicable()) { - try { - auto applier = ldap.authenticate(); - if (! applier) { - return -EACCES; - } + } else if (ldap.is_applicable()) { + try { + auto applier = ldap.authenticate(); + if (! applier) { + return -EACCES; + } - try { - applier->load_acct_info(*s->user); - s->perm_mask = applier->get_perm_mask(); - applier->modify_request_state(s); - s->auth_identity = std::move(applier); - } catch (int err) { - return -EACCES; - } - } catch (int err) { - return -EACCES; - } + try { + applier->load_acct_info(*s->user); + s->perm_mask = applier->get_perm_mask(); + applier->modify_request_state(s); + s->auth_identity = std::move(applier); + } catch (int err) { + return -EACCES; + } + } catch (int err) { + return -EACCES; + } } else { - return -EACCES; + return -EACCES; } } else { map access_keys = user_info.access_keys;