]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
Return non-zero when gatherkeys fails 250/head
authorTravis Rhoden <trhoden@redhat.com>
Tue, 18 Nov 2014 20:21:37 +0000 (20:21 +0000)
committerTravis Rhoden <trhoden@redhat.com>
Tue, 2 Dec 2014 16:41:16 +0000 (16:41 +0000)
commit952fa24fb43afa42d34920bbe4ccbaf3deb2cb4b
tree395a2523ab26831910a05e9b1dfbfd74d7031d11
parent4df3e6d3c85eda0aae975c81ecf820bd3c014939
Return non-zero when gatherkeys fails

Immediately abort and exit when a needed key cannot be found
on the list of given hosts.

Define a new exception, KeyNotFoundError, and raise that from
gatherkeys() when the requested file does not exist on any of
the given hosts to try.  Since we now raise an exception on
error, there is no longer any need to return a value from
gatherkeys().

Fixes: 10043
Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/exc.py
ceph_deploy/gatherkeys.py