red-hat-storage / rhcephcompose

A tool to compose releases of Red Hat Ceph Storage for Ubuntu
MIT License
1 stars 1 forks source link

compose: refactor _find_respin while loop #86

Closed ktdreyer closed 5 years ago

ktdreyer commented 5 years ago

Instead of using the dangerous/difficult-to-read while 1 condition, refactor this logic into two methods, so we can evaluate os.path.isdir() in the while condition.