]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/ceph_daemon.py: fix Termsize.update 15253/head
authorKefu Chai <kchai@redhat.com>
Wed, 24 May 2017 04:12:53 +0000 (12:12 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 24 May 2017 04:25:50 +0000 (12:25 +0800)
it's a regression introduced by 84f9c12

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/ceph_daemon.py

index 15bf1f43149098ab10b6126b279dbfc0f860101a..0ab5911955d0143279ad35f55eb7050d404e57c4 100755 (executable)
@@ -105,7 +105,7 @@ class Termsize(object):
     def update(self):
         rows, cols = self._gettermsize()
         if not self.changed:
-            self.changed = (self.raw,self.col) != (rows, cols)
+            self.changed = (self.rows, self.cols) != (rows, cols)
         self.rows, self.cols = rows, cols
 
     def reset_changed(self):