]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/pg_autoscaler: drop undefined variable 'cr_name'
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 8 Mar 2019 07:47:56 +0000 (15:47 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 8 Mar 2019 08:07:27 +0000 (16:07 +0800)
commit4295b75f628c9437b946f12d452d1e205be2f420
tree9398a572d3b87014193294c7bb94e5ecaf4dddc9
parent476d88ae6be2fbb0c5430a8d52720ffbbb8bbb82
mgr/pg_autoscaler: drop undefined variable 'cr_name'

```
a/pg_autoscaler/module.py:359: error: Name 'cr_name' is not defined
```

Actually _get_pool_status should have prevented any pool
with a zero-ed capacity from going this far, so it is safe
to simply drop the obviously redundant check here.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/pybind/mgr/pg_autoscaler/module.py