]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
SystemDState: Treat PIDs as strings when killing
authorZack Cerza <zack@redhat.com>
Tue, 2 May 2017 15:18:58 +0000 (09:18 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 21 Sep 2017 18:49:10 +0000 (12:49 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/orchestra/daemon/systemd.py

index 37cae616c022b656e9e9d000266e55a4ef49d5b6..4eaffcbe107bf4ec47bc9ce4c11a482d1601611a 100644 (file)
@@ -162,7 +162,7 @@ class SystemDState(DaemonState):
         pid = self.pid
         self.log.info("Sending signal %s to process %s", sig, pid)
         sig = '-' + str(sig)
-        self.remote.run(args=['sudo', 'kill', str(sig), pid])
+        self.remote.run(args=['sudo', 'kill', str(sig), str(pid)])
 
     def start(self, timeout=300):
         """