commit | 4a5969357019bcdbaa737ae2350f9a63aeaa010a | [log] [tgz] |
---|---|---|
author | Matthew Treinish <mtreinish@kortar.org> | Fri Mar 06 20:37:01 2015 -0500 |
committer | Matthew Treinish <mtreinish@kortar.org> | Sat Mar 07 01:50:07 2015 +0000 |
tree | 0666c6ecbb1c15f942c575df7c2b66deb7450555 | |
parent | 8c2482933ad455b44da8a9eefed69f5dd7c6d983 [diff] |
Add check on role availability before request creds by roles This commit adds a new method to the cred_provider abstract class, is_role_available(), which will return true if the provider can provide creds with the request roles, or false if it can't. This method is then used before any calls to get_creds_by_roles() to definitively check whether the test is expected to be able to be executed. Closes-Bug: #1429322 Change-Id: I00f61007b2b0605c07ac77773151562c5cf6ce85