]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: apply autopep8 changes
authorMichael Fritch <mfritch@suse.com>
Tue, 4 May 2021 18:35:47 +0000 (12:35 -0600)
committerSage Weil <sage@newdream.net>
Thu, 20 May 2021 23:15:32 +0000 (18:15 -0500)
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 6eaf23231d6048e6e583eff850395666b370c631)

src/cephadm/cephadm

index 139db69d20570cc8ee455d1004a6997ef3fdffc2..5a5a969775066267b0c2149154c016eef5e25a1b 100755 (executable)
@@ -2706,7 +2706,7 @@ def deploy_daemon_units(
     # cmd
     data_dir = get_data_dir(fsid, ctx.data_dir, daemon_type, daemon_id)
     with open(data_dir + '/unit.run.new', 'w') as f, \
-         open(data_dir + '/unit.meta.new', 'w') as metaf:
+            open(data_dir + '/unit.meta.new', 'w') as metaf:
         f.write('set -e\n')
 
         if daemon_type in Ceph.daemons:
@@ -6853,12 +6853,14 @@ class CephadmDaemonHandler(BaseHTTPRequestHandler):
             The token is installed at deployment time and must be provided to
             ensure we only respond to callers who know our token i.e. mgr
             """
+
             def wrapper(self, *args, **kwargs):
                 auth = self.headers.get('Authorization', None)
                 if auth != 'Bearer ' + self.server.token:
                     self.send_error(401)
                     return
                 f(self, *args, **kwargs)
+
             return wrapper
 
     def _help_page(self):