Reviewed: https://review.openstack.org/337323 Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=2b4e92141e212ed46df79fefca99d96aed7c2f86 Submitter: Jenkins Branch: master
commit 2b4e92141e212ed46df79fefca99d96aed7c2f86 Author: Marc Abramowitz <[email protected]> Date: Mon Jul 4 09:52:12 2016 -0700 glance-replicator: size: Handle no args better Check if `args is None` before doing `len(args)` to avoid `object of type 'NoneType'` has no len()` error. Closes-Bug: #1599169 Change-Id: I66b5845cf65b73e701f94b86ba43268342c82e22 ** Changed in: glance Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1599169 Title: glance-replicator size raises "object of type 'NoneType' has no len()" exception when no args provided Status in Glance: Fix Released Bug description: We should check if `args is None` before doing `len(args)` to avoid a `object of type 'NoneType'` has no len()` error. Currently what happens: ``` $ glance-replicator size 2016-07-04 09:51:19.030 30204 ERROR glance.cmd.replicator [-] replication_size size <server:port> Determine the size of a glance instance if dumped to disk. server:port: the location of the glance instance. ERROR: object of type 'NoneType' has no len() ``` What I expect to happen: ``` $ glance-replicator size 2016-07-04 09:52:02.389 30483 ERROR glance.cmd.replicator [-] replication_size size <server:port> Determine the size of a glance instance if dumped to disk. server:port: the location of the glance instance. ERROR: Too few arguments. ``` To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1599169/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

