Merge "Privilege checking for heat-keystone-setup-domain"

This commit is contained in:
Jenkins 2014-08-18 09:22:54 +00:00 committed by Gerrit Code Review
commit 7b010ce90c

View File

@ -79,6 +79,11 @@ def main():
logger.error("Unexpected filtered list response, please upgrade "
"keystoneclient to >= 0.5")
sys.exit(1)
except kc_exception.Forbidden:
logger.error("User '%s' is not authorized to perform this "
"operation, please try with other OS_USERNAME setting." %
USERNAME)
sys.exit(1)
# Create heat domain admin user
if not HEAT_DOMAIN_PASSWORD: