]> 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)
committerMichael Fritch <mfritch@suse.com>
Wed, 5 May 2021 13:57:07 +0000 (07:57 -0600)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index fd5cbafde0f01782a1348e793c49924c8120ab48..afb57d5587d02967481042211ba8351bc1dcc36f 100755 (executable)
@@ -2682,7 +2682,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:
@@ -6800,12 +6800,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):