Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error if free_disk_gb is None in CellStateManager
The field 'free_disk_gb' in Objects.ComputeNode can be nullable. In CellStateManager._get_compute_hosts, we compute free_disk_mb by 'free_disk_gb * 1024'. If the free_disk_gb is None, it will raise a TypeError exception because None type can't multiply by an integer. We should check this value, and if it's None, we just let it return zero. Closes-Bug: #1648983 Change-Id: I558d544ff838807c1d605cb5ed8d0e0fa97ab00e
- Loading branch information