summaryrefslogtreecommitdiffstats
path: root/bin/stack
diff options
context:
space:
mode:
authorAaron Lee <aaron.lee@rackspace.com>2012-02-22 13:30:24 -0600
committerAaron Lee <aaron.lee@rackspace.com>2012-02-22 15:28:26 -0600
commit7f788eb1672cf1731817f83e6987f7b128599154 (patch)
tree7da75b323a6a1ef2bc0ff5779bf9ec39f2776755 /bin/stack
parent7427454d71006f4b14683e630c8e6c834f7cb950 (diff)
downloadnova-7f788eb1672cf1731817f83e6987f7b128599154.tar.gz
nova-7f788eb1672cf1731817f83e6987f7b128599154.tar.xz
nova-7f788eb1672cf1731817f83e6987f7b128599154.zip
refactor a conditional for testing and understanding
_cleanup_running_deleted_instances was getting difficult to understand, so I extracted a method that contained the calculation about what is to be deleted. Also, added tests for that method. update: _shutdown_instance has an arity of three, the existing code gives four arguments, one was passed through to driver.destroy, which now has a default argument that defaults to True, the passed value. update 2: Doh! pep8 Change-Id: I1a32512a4e0d80ba4dcc911b96790c29c1f36710
Diffstat (limited to 'bin/stack')
0 files changed, 0 insertions, 0 deletions