]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
cephadmunit: Python3 fix: signal.SIGHUP is no longer an int. 1462/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Wed, 29 Apr 2020 11:47:24 +0000 (13:47 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 29 Apr 2020 11:48:09 +0000 (13:48 +0200)
py2: `str(signal.SIGHUP) == "1"`
py3: `str(signal.SIGHUP) == "signal.SIGHUP"`

Fixes: https://tracker.ceph.com/issues/45297
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
teuthology/orchestra/daemon/cephadmunit.py

index 27159dfccaef619d2e329fc29e63670db3fdbcea..fbc33287336b4409a49b4ae4c18f70b5956ebc88 100644 (file)
@@ -36,7 +36,7 @@ class CephadmUnit(DaemonState):
     def kill_cmd(self, sig):
         return ' '.join([
             'sudo', 'docker', 'kill',
-            '-s', str(sig),
+            '-s', str(int(sig)),
             'ceph-%s-%s.%s' % (self.fsid, self.type_, self.id_),
         ])