]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
nuke: gracefully handle zero targets 576/head
authorLoic Dachary <ldachary@redhat.com>
Sun, 19 Jul 2015 07:04:54 +0000 (09:04 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sun, 19 Jul 2015 07:09:32 +0000 (09:09 +0200)
commit2a47843139598e8d2fd9a3bd8fcf0f4c4639581e
tree50fa1ebe65dde607a9fc97b7a852677fd202c68c
parentd4261a165f3ca4badde811dd8d6891e2cdc18ee7
nuke: gracefully handle zero targets

If nuke is called with no targets, just do nothing instead of failing
because the target element is not found in the map. This can happen if
the machine fails to be provisioned early in the process.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/nuke.py